Function at 0x47e1f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e79b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47e251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047d0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e274
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 9]
mov byte [eax + 0x34], dl
mov eax, dword [ebp - 4]
call fcn.0047d544
test al, al
je 0x47e76c
xor eax, eax
push ebp
push 0x47e73a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.00414268
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
setne cl
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047a464
mov eax, dword [ebp - 4]
add eax, 0xd8
mov ecx, 8
mov edx, 0x1400
call fcn.00479ae8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0047cec4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
cmp byte [eax + 0xc], 0
je 0x47e360
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xec], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0047bad4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0047cd54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
xor ecx, ecx
call fcn.0047a584
jmp 0x47e386
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x84], 0x7fffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0047bad4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xdc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe0], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x1000
call fcn.0047a1a4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
add eax, 0xb4
push eax
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047a458
push eax
call fcn.004686f8
add esp, 0x14
test eax, eax
jg 0x47e438
lea edx, [ebp - 0x2c]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
cmp dword [ebp - 0x10], 0
jbe 0x47e4d9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0x7fffffff
jge 0x47e469
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
sub dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x10]
call fcn.0047a658
test al, al
jne 0x47e49c
lea edx, [ebp - 0x30]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x5a1
call fcn.0047a1a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x24], 4
jge 0x47e4d9
lea edx, [ebp - 0x34]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047a458
mov edx, dword [ebp - 4]
add edx, 0x74
mov ecx, 4
call fcn.004028c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047a458
mov edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.0047d480
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jle 0x47e52a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
dec eax
sub eax, 3
jb 0x47e54b
lea edx, [ebp - 0x38]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
dec eax
je 0x47e55c
dec eax
je 0x47e56b
dec eax
je 0x47e57a
jmp 0x47e589
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 3
jmp 0x47e5aa
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 2
jmp 0x47e5aa
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 1
jmp 0x47e5aa
lea edx, [ebp - 0x3c]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
sub eax, 1
jb 0x47e5b9
je 0x47e608
jmp 0x47e617
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
dec eax
je 0x47e5c7
dec eax
je 0x47e5d6
jmp 0x47e5e5
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 2
jmp 0x47e638
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 3
jmp 0x47e638
lea edx, [ebp - 0x40]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
jmp 0x47e638
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 1
jmp 0x47e638
lea edx, [ebp - 0x44]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047a1a4
test al, al
jne 0x47e66e
lea edx, [ebp - 0x48]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
push 0
push 0
push 0
push 0x5dc0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.0047d558
test eax, eax
jne 0x47e6b2
lea edx, [ebp - 0x4c]
mov eax, 0x479970
call fcn.00405c94
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x407098]
call fcn.0040b778
call fcn.00403a40
lea eax, [ebp - 0x28]
push eax
call fcn.0046d758
pop ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xd4]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0047b51c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0047b500
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.0047b510
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0xa4], edx
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
test eax, eax
jns 0x47e708
add eax, 7
sar eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + 0xe8], eax
mov eax, dword [ebp - 4]
call fcn.0047e95c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.004141e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e751
push 0
xor ecx, ecx
mov edx, 0x410
mov eax, dword [ebp - 4]
call fcn.0047e910
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047f020
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x47e780
mov eax, dword [ebp - 4]
call fcn.0047e7bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e7a2
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.004040cc
ret