Function at 0x47f800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3d14
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x664e94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
xor eax, eax
mov ecx, dword [ebp - 0x80]
mov word [ecx + 0x70], ax
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x80]
mov ax, word [ebp - 0x38]
mov word [edx + 0x6e], ax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x1c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x3c]
add eax, dword [ecx + 0x30]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x40]
sub eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 0x80]
movzx eax, word [edx + 0x72]
test eax, eax
jne 0x47f88e
jmp 0x47fbc1
mov ecx, dword [ebp - 0x80]
mov dx, word [ecx + 0x6e]
mov word [ebp - 0x14], dx
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x47f8d5
push 0
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x80]
movzx edx, word [ecx + 0x72]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [0x65fe78]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x80]
movzx eax, word [edx + 0x72]
sub eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
jmp 0x47f8fb
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jg 0x47fb9c
mov eax, dword [ebp - 0x80]
add eax, 0x2c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x20], 0
jl 0x47f932
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 8]
jge 0x47f932
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx*4]
mov dword [ebp - 0x44], eax
jmp 0x47f937
call fcn.004963bf
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x28]
call fcn.0040144d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x80]
movzx ecx, byte [eax + 0x40]
test ecx, ecx
je 0x47f990
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.0046fdb0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040227d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401443
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x60], edx
mov eax, 1
mov ecx, dword [ebp - 0x80]
movzx edx, byte [ecx + 0x40]
cmp eax, edx
je 0x47f9a8
jmp 0x47f9cd
cmp dword [ebp - 0x60], 0
jne 0x47f9b7
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x80]
movzx eax, byte [edx + 0x41]
push eax
push 0
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0047b9a0
add esp, 0xc
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.0046eae0
mov ecx, dword [ebp - 0x80]
add eax, dword [ecx + 0x74]
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 0x80]
movzx ecx, byte [eax + 0x40]
test ecx, ecx
je 0x47f9ff
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.0046fd80
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x64], edx
movzx eax, word [ebp - 0x14]
cmp dword [ebp - 0x64], eax
je 0x47fa51
mov ecx, 1
mov edx, dword [ebp - 0x80]
mov word [edx + 0x70], cx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x68], edx
mov ax, word [ebp - 0x68]
mov word [ebp - 0x14], ax
cmp dword [ebp - 0x20], 0
jne 0x47fa4f
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp - 0x80]
mov ax, word [ebp - 0x14]
mov word [edx + 0x6e], ax
jmp 0x47fa63
mov ecx, dword [ebp - 0x80]
mov dx, word [ecx + 0x70]
add dx, 1
mov eax, dword [ebp - 0x80]
mov word [eax + 0x70], dx
cmp dword [ebp + 8], 0
je 0x47fb88
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x20], 0
jne 0x47fa86
mov dword [ebp - 0x2c], 1
jmp 0x47fab8
cmp dword [ebp - 0x30], 0
jne 0x47fa94
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
jmp 0x47fab8
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jne 0x47faa4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x47fab8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401443
jmp 0x47f8f2
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x10]
call edx
movzx eax, al
test eax, eax
jne 0x47fb88
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x47fb70
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0x20], 0
jne 0x47fafe
mov dword [ebp - 0x88], 0
jmp 0x47fb15
mov edx, dword [ebp - 0x70]
movzx eax, byte [edx + 0x4c]
neg eax
sbb eax, eax
and eax, 2
add eax, 0xffffffff
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x47fb33
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov dword [eax + 0x30], 0
jmp 0x47fb3e
mov ecx, dword [ebp - 0x80]
mov ecx, dword [ecx + 0x24]
call fcn.0047d200
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x80]
add eax, dword [ecx + 0x78]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x24]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x10], 0x6a
jmp 0x47fb77
mov dword [ebp - 0x10], 0x69
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401443
jmp 0x47fb9c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401443
jmp 0x47f8f2
cmp dword [ebp + 8], 0
je 0x47fbaf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x10], 0
je 0x47fbc1
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x80]
call fcn.0047ead0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8