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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
mov eax, dword [ecx + 0x18]
test esi, esi
mov dword [esp + 0x18], eax
js 0x47a004
mov ebx, dword [esp + 0x78]
test ebx, ebx
jns 0x47a004
mov esi, dword [ecx + 0x468]
test esi, esi
je 0x47a004
mov edi, dword [ecx + 0x46c]
mov ecx, dword [esp + 0x7c]
xor eax, eax
mov edx, dword [edi + eax*4]
test edx, edx
je 0x47a1f0
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x47a1f0
mov ebp, dword [edx + 0xc]
cmp ecx, dword [ebp]
je 0x479fb5
xor edx, edx
add edx, 1
cmp edx, ebx
je 0x47a1f0
cmp dword [ebp + edx*4], ecx
jne 0x479fa4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x38], 0
test eax, eax
jg 0x47a016
lea esi, [esi]
mov dword [esp + 0x2c], 0xadabac08
nop
lea esi, [esi]
mov edx, dword [esp + 0x80]
test edx, edx
je 0x479ff8
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x38]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0
test eax, eax
jle 0x479fd0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], 0
xor edx, edx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
not eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0xadabac08
shr eax, 0x1f
mov dword [esp + 0x70], ecx
mov dword [esp + 0x1c], eax
test ebp, ebp
lea eax, [edx*4]
mov ebx, edx
je 0x47a079
mov ebx, dword [ebp + edx*4]
lea eax, [ebx*4]
mov edi, dword [esp + 0x70]
mov esi, dword [edi + 0x1c]
mov esi, dword [esi + eax]
mov edi, dword [esi + 0xb0]
mov eax, dword [edi]
cmp eax, dword [esp + 0x74]
jne 0x47a150
cmp byte [esp + 0x1c], 0
je 0x47a0a6
cmp ebx, dword [esp + 0x78]
jne 0x47a150
cmp dword [esp + 0x74], 1
je 0x47a162
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x47a0ce
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x47a210
mov eax, dword [esi + 0x30]
xor ecx, ecx
test eax, 0x180
sete cl
and eax, 1
add eax, ecx
cmp eax, dword [esp + 0x20]
jl 0x47a150
mov ecx, dword [esi + 0xe0]
mov esi, 5
cmp ecx, 5
mov dword [esp + 0x4c], ecx
cmovle esi, ecx
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x3c], esi
sete byte [esp + 0x24]
movzx ecx, byte [esp + 0x24]
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jge 0x47a122
movzx ecx, byte [esp + 0x34]
test cl, cl
jne 0x47a150
mov ecx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], ecx
jne 0x47a1a0
cmp byte [esp + 0x24], 0
je 0x47a1a0
cmp edi, dword [esp + 0x40]
jg 0x47a180
jl 0x47a150
mov esi, dword [esp + 0x44]
cmp dword [esp + 0x34], esi
jae 0x47a180
nop
add edx, 1
cmp dword [esp + 0x18], edx
jg 0x47a061
jmp 0x479fe0
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x47a150
mov ecx, dword [edi + 0x6c]
test ecx, ecx
jne 0x47a0b1
jmp 0x47a150
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
xor ecx, dword [esp + 0x44]
xor esi, edi
or ecx, esi
jne 0x47a1a0
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x4c], ecx
jle 0x47a150
lea esi, [esi]
test ebp, ebp
je 0x47a1b7
mov esi, dword [esp + 0x18]
sub esi, 1
cmp esi, edx
jne 0x47a1b7
test ebx, ebx
js 0x47a25f
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
add edx, 1
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
jmp 0x47a153
add eax, 1
cmp eax, esi
jne 0x479f84
mov ecx, dword [esp + 0x70]
xor ebp, ebp
jmp 0x47a006
cmp eax, 1
je 0x47a2d8
cmp eax, 3
je 0x47a2bd
test eax, eax
je 0x47a2a2
mov eax, dword [edi + 4]
mov dword [esp + 0x24], edx
mov dword [esp], eax
call fcn.00489240
test eax, eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x24]
jne 0x47a0ce
mov edi, dword [esp + 0x2c]
add edx, 1
mov eax, 0xbcbabb08
test edi, edi
cmovns eax, edi
mov dword [esp + 0x2c], eax
jmp 0x47a153
mov edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], ebx
mov esi, dword [edx + 0x18]
mov edx, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x44], esi
jmp 0x47a153
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x514]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x47a0ce
jmp 0x47a226
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x51c]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x47a0ce
jmp 0x47a226
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x518]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x47a0ce
jmp 0x47a226