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

Disassembly:
sub esp, 0x390
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xabc]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp + 0x24]
push esi
push edi
add eax, 0x44
push eax
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0xa0]
call fcn.00463f50
mov eax, dword [ebp + 0xabc]
mov ecx, dword [ebp + 0x24]
add eax, 0x44
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00463f50
mov eax, dword [ebp + 0xa94]
mov ecx, dword [ebp + 0xabc]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x7c]
lea eax, [eax + edx*4]
xor edx, edx
mov dx, word [eax + 6]
movzx eax, word [eax + 8]
push edx
push eax
mov eax, dword [ecx + 0x24]
lea edx, [ecx + 0x44]
mov ecx, dword [eax + 4]
push edx
push ecx
lea ecx, [esp + 0x278]
call fcn.004ae6a0
mov eax, dword [ebp + 0xa94]
mov ecx, dword [ebp + 0xabc]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x7c]
lea eax, [eax + edx*4]
xor edx, edx
mov dx, word [eax + 6]
movzx eax, word [eax + 8]
push edx
push eax
mov eax, dword [ecx + 0x24]
lea edx, [ecx + 0x44]
mov ecx, dword [eax + 4]
push edx
push ecx
lea ecx, [esp + 0x140]
call fcn.004ae6a0
mov eax, dword [ebp + 0xa90]
xor ebx, ebx
cmp eax, ebx
je 0x479131
mov eax, 2
mov dword [esp + 0x134], eax
mov dword [esp + 0x9c], eax
mov eax, 5
lea esi, [ebp + 0x34]
push esi
mov dword [esp + 0x270], eax
mov dword [esp + 0x5c], eax
call fcn.004385a0
add esp, 4
test eax, eax
jne 0x479131
mov ecx, 7
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x50], 1
je 0x4790aa
lea edx, [esp + 0x38]
push edx
call fcn.00437620
add esp, 4
mov eax, dword [ebp + 0xabc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x5c]
mov eax, dword [edx + 0xb4]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00438fa0
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x27c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov byte [esp + 0x28c], 1
mov byte [esp + 0x154], 1
mov byte [esp + 0x78], 1
mov byte [esp + 0xbc], 1
mov esi, dword [ebp + 0xabc]
mov ecx, esi
call fcn.00442f50
test eax, eax
je 0x479152
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x1c]
mov cl, byte [eax + 0x109]
test cl, cl
jne 0x479168
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 0x3bc]
jne 0x479168
mov eax, dword [ecx + 0x3b8]
jmp 0x47916b
add eax, 0xc
mov dword [ebp + 0x68], eax
cmp dword [eax + 0x4c], ebx
jne 0x479176
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0xabc]
mov eax, dword [esp + 0x3a4]
add ecx, 0x48
cmp eax, ebx
mov dword [ebp + 0x30], ecx
mov ecx, ebp
je 0x4791e3
call fcn.0048a060
test eax, eax
je 0x47956c
cmp dword [esp + 0x3ac], ebx
je 0x4791c9
mov ecx, dword [ebp + 0x70]
mov eax, 1
cmp ecx, eax
jl 0x479206
mov ecx, 0xc
mov edx, dword [ebp + 0x7c]
mov dword [ecx + edx], ebx
mov edx, dword [ebp + 0x70]
inc eax
add ecx, 0xc
cmp eax, edx
jle 0x4791b6
jmp 0x479206
mov eax, dword [ebp + 0xabc]
mov ecx, dword [eax + 4]
cmp word [ecx + 0x52], bx
je 0x479206
push 1
mov ecx, ebp
call fcn.00475bc0
jmp 0x479206
call fcn.004844d0
push 4
mov ecx, ebp
call fcn.00484510
push 4
mov ecx, ebp
mov dword [ebp + 0xa80], eax
call fcn.00484510
mov dword [ebp + 0xa84], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xa90]
xor edi, edi
neg ebx
sbb ebx, ebx
lea edx, [esp + 0xf8]
and ebx, edx
mov dword [esp + 0x14], ebx
nop
push ebx
lea eax, [esp + 0xe0]
push eax
mov ecx, ebp
call fcn.0048af60
test eax, eax
je 0x4793c8
cmp eax, 0x80
je 0x479442
test al, 6
je 0x479300
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0xa98]
mov edx, dword [ecx + edx*4]
test edx, edx
mov esi, dword [ebp + 0xa9c]
mov dword [esp + 0x80], edx
mov dword [esp + 0xc4], edx
mov ecx, dword [ecx + esi*4]
mov esi, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc8], esi
jne 0x4793b2
test ecx, ecx
je 0x4792ca
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ecx
mov esi, dword [ebp + 0xab8]
xor ebx, ebx
test esi, esi
setne bl
inc ebx
mov esi, ebx
mov ebx, dword [esp + 0x14]
test edx, edx
mov dword [esp + 0x88], esi
mov dword [esp + 0xcc], esi
jne 0x4792f8
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x479300
mov dword [esp + 0x10], 1
test al, 9
je 0x479240
test edi, edi
je 0x47932e
lea ecx, [esp + 0x268]
call fcn.004af2a0
mov eax, dword [ebp + 0xa90]
test eax, eax
je 0x47932e
lea ecx, [esp + 0x130]
call fcn.004af2a0
mov eax, dword [ebp + 0xa94]
mov ecx, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4]
test esi, esi
lea eax, [ecx + eax*4]
je 0x4793c1
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
jne 0x4793c1
mov cx, word [eax + 8]
mov word [esp + 0x2f0], cx
mov word [esp + 0x1b8], cx
mov cx, word [eax + 6]
mov word [esp + 0x2f2], cx
mov word [esp + 0x1ba], cx
movzx edx, word [eax + 4]
push esi
push edx
lea ecx, [esp + 0x270]
call fcn.004afd60
mov eax, dword [ebp + 0xa94]
mov ecx, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
movzx edx, word [ecx + eax*4 + 4]
push esi
push edx
lea ecx, [esp + 0x138]
call fcn.004afd60
mov edi, 1
jmp 0x479240
test ecx, ecx
je 0x4792ca
xor esi, esi
jmp 0x4792de
xor edi, edi
jmp 0x479240
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4793ff
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x58]
call fcn.00464ee0
mov eax, dword [ebp + 0xa90]
test eax, eax
je 0x4793ff
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x9c]
call fcn.00464ee0
test edi, edi
je 0x479240
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x26c]
call fcn.004afe20
mov eax, dword [ebp + 0xa90]
test eax, eax
je 0x479240
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x134]
call fcn.004afe20
jmp 0x479240
test edi, edi
je 0x47946c
lea ecx, [esp + 0x268]
call fcn.004af2a0
mov eax, dword [ebp + 0xa90]
test eax, eax
je 0x479565
lea ecx, [esp + 0x130]
call fcn.004af2a0
mov eax, dword [ebp + 0xa90]
test eax, eax
je 0x479565
mov ecx, dword [ebp + 0xabc]
mov esi, dword [ecx + 0x48]
mov edi, dword [esp + 0x18]
cmp esi, edi
je 0x479565
mov ebx, 0x7ffffff
mov al, byte [esi + 0x26]
cmp al, 2
je 0x4794a3
cmp al, 1
jne 0x47954c
mov ecx, esi
call fcn.00452810
cmp dword [eax], ebx
je 0x47954c
mov ecx, esi
call fcn.00452810
cmp dword [eax + 0x10], ebx
je 0x47954c
mov ecx, esi
call fcn.00452810
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00452810
add eax, 0x10
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x44], edx
je 0x479518
mov eax, dword [eax + 0xb4]
jmp 0x47951a
xor eax, eax
push eax
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00438420
mov dl, byte [esp + 0x164]
add esp, 0x10
test dl, dl
sete al
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x479550
push 0
push 0
push 1
mov ecx, ebp
push esi
call fcn.004874b0
mov esi, dword [esi + 0x18]
cmp esi, edi
jne 0x479494
mov ecx, ebp
call fcn.004844e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x390
ret 0xc