Function at 0x47801c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47872a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
mov edx, dword [0x473394]
call fcn.004058d0
lea eax, [ebp - 0x10]
call fcn.0047baf0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x47808c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x478105
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x4780ad
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
je 0x4780a7
or dword [ebp - 0x14], 0x40
jmp 0x478105
or dword [ebp - 0x14], 0x20
jmp 0x478105
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
jne 0x4780dd
test byte [ebp - 0x14], 0x40
jne 0x4780ce
test byte [ebp - 0x14], 0x80
je 0x4780dd
and dword [ebp - 0x14], 0xffffffbf
and dword [ebp - 0x14], 0xffffff7f
or dword [ebp - 0x14], 0x20
test byte [ebp - 0x14], 0x40
jne 0x478105
test byte [ebp - 0x14], 0x80
jne 0x478105
test byte [ebp - 0x14], 0x20
jne 0x478105
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
je 0x478101
or dword [ebp - 0x14], 0x40
jmp 0x478105
or dword [ebp - 0x14], 0x20
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 1
jne 0x478122
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x78], eax
jmp 0x47818d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 2
jne 0x47814b
cmp dword [ebp - 0xc], 0
je 0x47814b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x88], eax
jmp 0x47817c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 0
je 0x47816a
mov dword [ebp - 0x8c], 0x280
mov dword [ebp - 0x88], 0x1e0
jmp 0x47817c
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x8c]
call fcn.0047873c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 1
jne 0x4781a1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x4781d6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x4781b3
mov dword [ebp - 0x18], 2
jmp 0x4781d6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jbe 0x4781c9
mov dword [ebp - 0x18], 3
cmp dword [ebp - 0x18], 1
jae 0x4781d6
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
je 0x4781f4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x28], 1
je 0x4781f4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4782d2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 1
jne 0x478214
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x20], eax
jmp 0x4782d2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x47822c
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x4782d2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 2
jne 0x4782c8
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
call fcn.004055f4
mov esi, eax
dec esi
test esi, esi
jl 0x4782d2
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
movsx eax, al
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
movsx edx, dl
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
movsx eax, al
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
movsx edx, dl
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jge 0x4782c2
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
dec eax
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xor edx, edx
push edx
push eax
call fcn.0042b568
mov dword [ebp - 0x20], eax
inc ebx
dec esi
jne 0x478258
jmp 0x4782d2
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 1
jne 0x4782e6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
jmp 0x47831a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x4782f8
mov dword [ebp - 0x24], 1
jmp 0x47831a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
je 0x47831a
cmp dword [ebp - 0x24], 2
je 0x47831a
cmp dword [ebp - 0x24], 3
je 0x47831a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.00474898
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xc], 0
je 0x478341
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
call fcn.00474844
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004055f4
mov esi, eax
dec esi
test esi, esi
jl 0x4783e1
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
call fcn.00474844
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp eax, 1
jne 0x478385
cmp ecx, dword [ebp - 0x34]
jne 0x47837e
xor edi, edi
jmp 0x4783aa
mov edi, 0x2710
jmp 0x4783aa
test eax, eax
jne 0x47839e
mov eax, dword [ebp - 0x30]
shl eax, 2
push eax
mov eax, ecx
pop edx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edi, eax
jmp 0x4783aa
mov eax, ecx
sub eax, dword [ebp - 0x34]
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x2c]
call fcn.004055f4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
inc eax
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x477ffc]
call fcn.004057b0
add esp, 4
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov dword [eax + edx*4], edi
inc ebx
dec esi
jne 0x47835a
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], 0
je 0x4783fa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
call fcn.004747f4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004055f4
mov esi, eax
dec esi
test esi, esi
jl 0x478460
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x2c]
mov edi, dword [edx + ebx*4]
call fcn.004747f4
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
cmp eax, 1
jne 0x478442
cmp ecx, dword [ebp - 0x3c]
jne 0x47843a
add edi, 0
jmp 0x478456
add edi, 0x2710
jmp 0x478456
test eax, eax
jne 0x47844a
add edi, ecx
jmp 0x478456
mov eax, ecx
sub eax, dword [ebp - 0x3c]
cdq
xor eax, edx
sub eax, edx
add edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + ebx*4], edi
inc ebx
dec esi
jne 0x47840f
mov dword [ebp - 0x40], 0x186a0
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004055f4
mov esi, eax
dec esi
test esi, esi
jl 0x478498
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + ebx*4]
cmp edi, dword [ebp - 0x40]
jge 0x478494
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
inc ebx
dec esi
jne 0x478483
cmp dword [ebp - 0x44], 0
jl 0x4784b1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x28], eax
mov bl, 1
jmp 0x4784b8
xor eax, eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 1
jne 0x4784c9
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x3c]
jmp 0x4784ec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
jne 0x4784df
xor edi, edi
test bl, bl
je 0x4784ec
mov edi, 2
jmp 0x4784ec
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x3c]
test bl, bl
je 0x4784ec
or edi, 2
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 0
je 0x4784ff
xor eax, eax
mov dword [ebp - 0x74], eax
jmp 0x4785df
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 1
jne 0x478516
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x74], eax
jmp 0x4785df
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 2
jne 0x47852a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x48], eax
jmp 0x478530
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x48], 0
je 0x4785df
mov dword [ebp - 0x4c], 0x186a0
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x28]
mov edx, dword [edx + 0x654]
mov ecx, dword [0x473394]
call fcn.0040590c
mov eax, dword [ebp - 0x50]
call fcn.004055f4
mov esi, eax
dec esi
test esi, esi
jl 0x4785df
inc esi
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
add eax, eax
mov edx, dword [ebp - 0x50]
push esi
push edi
lea esi, [edx + eax*8]
lea edi, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x90]
jne 0x4785d9
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x78]
jne 0x4785d9
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x7c]
jne 0x4785d9
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x48]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x4c]
jge 0x4785d9
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4785df
inc dword [ebp - 0x54]
dec esi
jne 0x478577
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 1
jne 0x4785f0
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x44]
jmp 0x478621
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x4785fd
xor esi, esi
jmp 0x478621
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x44]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov ecx, 4
call fcn.0045e278
test al, al
je 0x47861f
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x44]
jmp 0x478621
xor esi, esi
mov eax, dword [ebp - 4]
mov edx, 0x48
call fcn.00407498
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x28], edx
call fcn.0047bb68
xor edx, edx
push edx
push eax
call fcn.0047bb5c
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x10]
call fcn.0042b604
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 1
cmc
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
cmp bl, 1
cmc
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x74]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478731
lea eax, [ebp - 0x50]
mov edx, dword [0x473394]
call fcn.004058d0
lea eax, [ebp - 0x2c]
mov edx, dword [0x477ffc]
call fcn.004058d0
lea eax, [ebp - 0x10]
call fcn.00405f88
ret