Function at 0x479ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c8240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [esp + 0x78]
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x80]
cmp eax, ecx
push esi
sete byte [esp + 0x80]
xor edx, edx
mov esi, 0xdf
div esi
mov esi, dword [ebp + ecx*4 + 0x28]
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x20], ebp
mov edi, edx
mov dword [esp + 0x18], edi
je 0x47a191
push ebx
jmp 0x479f40
mov eax, dword [ebp + 0x1c]
mov cl, byte [esp + 0x88]
mov edx, dword [esp + 0x7c]
lea esi, [esi + esi*2]
shl esi, 4
add esi, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], esi
call fcn.00477130
test al, al
je 0x47a184
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x47a180
mov ecx, dword [esi + 0x28]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [esp + 0x10], edx
jae 0x47a180
mov ebp, dword [esi + 0x24]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx + ebp]
mov edx, dword [esp + 0x90]
imul eax, eax, 0x58
mov ecx, dword [edx + 8]
add eax, ecx
cmp edi, 0xdf
mov ebx, eax
lea esi, [ebx + 0x2c]
jb 0x479fd5
mov ecx, esi
call fcn.00477760
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shr edi, 5
shl edx, cl
shl edi, 2
test dword [edi + esi], edx
mov dword [esp + 0x20], edx
je 0x47a010
mov eax, dword [esp + 0x8c]
lea eax, [eax + ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
cmp eax, 2
jl 0x47a038
cmp eax, 3
jg 0x47a038
inc dword [ebx + 0x28]
jmp 0x47a038
mov ecx, dword [esp + 0x8c]
lea eax, [ecx + ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
dec eax
je 0x47a035
dec eax
je 0x47a030
dec eax
jne 0x47a038
add dword [ebx + 0x20], 2
jmp 0x47a038
inc dword [ebx + 0x20]
jmp 0x47a038
inc dword [ebx + 0x24]
cmp dword [esp + 0x1c], 0xdf
jb 0x47a04d
mov ecx, esi
call fcn.00477760
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + esi]
mov eax, dword [esp + 0x84]
or ecx, edx
cmp eax, 0xffffffff
mov dword [edi + esi], ecx
je 0x47a160
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
xor esi, esi
push esi
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
call fcn.00401a00
mov eax, dword [esp + 0x8c]
mov cl, byte [eax + ebp + 8]
test cl, cl
mov dword [esp + 0x74], esi
jne 0x47a0bc
mov eax, 0x4e9458
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47a0a4
sub eax, edx
push eax
push 0x4e9458
lea ecx, [esp + 0x30]
call fcn.00401810
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x30]
push ecx
mov ebp, 0xf
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
call fcn.00401a00
mov dword [esp + 0x68], edi
lea edx, [esp + 0x44]
push edx
lea ecx, [ebx + 0x48]
mov byte [esp + 0x78], 1
call fcn.00479cb0
mov eax, dword [esp + 0x64]
mov edi, 0x10
cmp eax, edi
jb 0x47a12b
mov eax, dword [esp + 0x50]
push eax
call fcn.00442830
add esp, 4
cmp dword [esp + 0x40], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
mov dword [esp + 0x74], 0xffffffff
jb 0x47a153
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00442830
add esp, 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x10], ecx
add eax, 0xc
jmp 0x479f74
mov ebp, dword [esp + 0x24]
mov esi, dword [esi + 0x1c]
cmp esi, 0xffffffff
jne 0x479f40
pop ebx
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x68
ret 0x18