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

Disassembly:
sub esp, 0x54
mov ecx, dword [esp + 0x60]
push ebx
push ebp
push esi
mov ebp, dword [ecx]
mov esi, dword [esp + 0x70]
add ebp, esi
mov dword [esp + 0xc], 0
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
mov al, byte [ebp]
and al, 0xf
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], 0
cmp al, 0xc
je 0x47a2bc
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call fcn.0047dee0
mov edi, dword [esp + 0x78]
mov esi, eax
add esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
mov ebx, dword [esp + 0x74]
push eax
push edi
push ebx
mov dword [esp + 0x28], 0
call fcn.0047dee0
mov ecx, eax
mov eax, dword [esp + 0x28]
push esi
push ebp
add eax, ecx
push eax
push edi
push ebx
call fcn.00478ad0
add esp, 0x2c
xor eax, eax
cmp byte [ebx + 0x23], al
mov ecx, 3
cmovne eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov eax, dword [edi]
mov al, byte [ebx + eax]
and al, 0xf
cmp al, 0xc
je 0x47a2fb
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call fcn.0047dee0
push 0
push 0
push dword [esp + 0x24]
add eax, ebx
push eax
push edi
call fcn.00478ad0
mov ecx, dword [edi]
add esp, 0x20
mov al, byte [ecx + ebx]
and al, 0xfc
or al, 0xc
mov byte [ecx + ebx], al
mov ebp, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
push esi
push ebp
call fcn.0047dee0
add esp, 0xc
test eax, eax
je 0x47a7ee
lea ebx, [eax + esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
add esi, ebx
push eax
push dword [esp + 0x70]
mov dword [esp + 0x68], esi
push edi
call fcn.0047dee0
add esp, 0xc
test eax, eax
je 0x47a7e1
mov ecx, dword [esp + 0x6c]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
cmp ebx, esi
jae 0x47a7bc
nop word [eax + eax]
mov eax, dword [ebp]
mov dword [esp + 0x20], ebx
mov al, byte [ebx + eax]
and al, 0xf
mov byte [esp + 0x74], al
cmp al, 7
jb 0x47a7ee
cmp al, 0xa
ja 0x47a7ee
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
call fcn.0047dee0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x47a7ee
mov eax, dword [esp + 0x24]
add eax, ecx
add ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ebx
cmp ebx, esi
jae 0x47a7ee
lea eax, [esp + 0x48]
push eax
push ebx
push ebp
call fcn.0047dee0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x40], edx
test edx, edx
je 0x47a7ee
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x58], eax
lea ecx, [eax + ebx]
mov dword [esp + 0x5c], ecx
cmp ecx, esi
ja 0x47a7ee
mov ebx, dword [edi + 0x28]
add ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebx
cmp esi, ebx
jae 0x47a590
mov ebp, dword [edi]
mov dword [esp + 0x30], esi
mov bl, byte [esi + ebp]
and bl, 0xf
cmp bl, 7
jb 0x47a7e1
cmp bl, 0xa
ja 0x47a7e1
lea eax, [esp + 0x14]
push eax
push esi
push edi
call fcn.0047dee0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x47a7e1
mov eax, dword [esp + 0x14]
add eax, esi
mov esi, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x34], eax
cmp eax, esi
jae 0x47a7e1
lea ecx, [esp + 0x2c]
push ecx
push eax
push edi
call fcn.0047dee0
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x47a7e1
add eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
cmp eax, esi
ja 0x47a7e1
cmp bl, 7
je 0x47a496
cmp bl, 0xa
je 0x47a496
xor esi, esi
jmp 0x47a49b
mov esi, 1
mov al, byte [esp + 0x74]
cmp al, 7
je 0x47a4f9
cmp al, 0xa
je 0x47a4f9
mov edx, dword [esp + 0x1c]
xor ecx, ecx
add edx, ebp
mov ebp, dword [esp + 0x70]
add edx, dword [esp + 0x18]
mov eax, dword [ebp]
add eax, dword [esp + 0x3c]
add eax, dword [esp + 0x20]
push esi
push dword [esp + 0x18]
push edx
push ecx
push dword [esp + 0x34]
push eax
call fcn.00479b40
add esp, 0x18
test eax, eax
jne 0x47a584
mov eax, dword [esp + 0x54]
mov esi, eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x47a406
jmp 0x47a58c
mov edx, dword [esp + 0x1c]
mov ecx, 1
mov eax, dword [esp + 0x3c]
add edx, ebp
mov ebp, dword [esp + 0x70]
add eax, dword [esp + 0x20]
add edx, dword [esp + 0x18]
add eax, dword [ebp]
test esi, esi
je 0x47a4c2
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x14]
jne 0x47a4de
mov esi, ecx
sub esi, 4
jb 0x47a541
nop dword [eax]
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x47a546
add eax, 4
add edx, 4
sub esi, 4
jae 0x47a530
cmp esi, 0xfffffffc
je 0x47a57a
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x47a573
cmp esi, 0xfffffffd
je 0x47a57a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x47a573
cmp esi, 0xfffffffe
je 0x47a57a
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x47a573
cmp esi, 0xffffffff
je 0x47a57a
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x47a57a
xor eax, eax
jmp 0x47a4d6
mov eax, 1
jmp 0x47a4d6
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x38]
mov al, byte [eax + ecx]
and al, 0xf
cmp esi, ebx
jae 0x47a656
test al, al
jne 0x47a638
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
add ebx, dword [esp + 0x44]
add ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x1c]
mov esi, ebx
neg esi
mov eax, esi
adc ecx, ecx
neg ecx
or eax, ecx
je 0x47a621
mov edx, dword [edi + 4]
xor eax, eax
mov ebp, edx
add ebp, esi
adc eax, ecx
js 0x47a5f6
jg 0x47a5e0
cmp ebp, dword [edi + 8]
jbe 0x47a5f6
lea eax, [esi + edx]
push eax
push edi
call fcn.00478b70
add esp, 8
cmp byte [edi + 0x23], 0
jne 0x47a61d
mov edx, dword [edi + 4]
mov ecx, dword [edi]
sub edx, ebx
sub edx, dword [esp + 0x30]
mov ebp, esi
push edx
mov edx, dword [esp + 0x34]
lea eax, [ecx + ebx]
add eax, edx
push eax
lea eax, [ecx + edx]
push eax
call fcn.004fd090
add dword [edi + 4], ebp
add esp, 0xc
add dword [edi + 0x28], esi
mov ebp, dword [esp + 0x70]
cmp byte [edi + 0x23], 0
je 0x47a7a8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x54
ret
mov esi, dword [edi + 0x28]
push ecx
push ebp
push dword [esp + 0x3c]
mov dword [edi + 0x28], 0
push edi
call fcn.0047a210
add esp, 0x10
jmp 0x47a7a1
test al, al
je 0x47a7a8
mov ecx, dword [esp + 0x10]
cmp al, 0xc
je 0x47a705
mov esi, dword [esp + 0x48]
add esi, ecx
add esi, edx
mov eax, esi
or eax, 0
je 0x47a6c6
mov edx, dword [edi + 4]
xor eax, eax
mov ecx, edx
add ecx, esi
adc eax, eax
test eax, eax
jb 0x47a6a2
ja 0x47a68f
cmp ecx, dword [edi + 8]
jbe 0x47a6a2
lea eax, [esi + edx]
push eax
push edi
call fcn.00478b70
add esp, 8
cmp byte [edi + 0x23], 0
jne 0x47a6c2
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
lea eax, [ecx + esi]
add eax, ebx
push eax
call fcn.004fd090
add dword [edi + 4], esi
add esp, 0xc
add dword [edi + 0x28], esi
mov ecx, dword [esp + 0x10]
cmp byte [edi + 0x23], 0
jne 0x47a62b
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call fcn.004fd090
mov eax, dword [ebp]
add eax, dword [esp + 0x44]
push dword [esp + 0x64]
push eax
mov eax, dword [edi]
add eax, dword [esp + 0x24]
add eax, ebx
push eax
call fcn.004fd090
add esp, 0x18
jmp 0x47a7a8
lea esi, [ecx + 1]
mov eax, esi
or eax, 0
je 0x47a75c
mov edx, dword [edi + 4]
xor eax, eax
mov ecx, edx
add ecx, esi
adc eax, eax
test eax, eax
jb 0x47a738
ja 0x47a725
cmp ecx, dword [edi + 8]
jbe 0x47a738
lea eax, [esi + edx]
push eax
push edi
call fcn.00478b70
add esp, 8
cmp byte [edi + 0x23], 0
jne 0x47a758
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
lea eax, [ecx + esi]
add eax, ebx
push eax
call fcn.004fd090
add dword [edi + 4], esi
add esp, 0xc
add dword [edi + 0x28], esi
mov ecx, dword [esp + 0x10]
cmp byte [edi + 0x23], 0
jne 0x47a62b
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call fcn.004fd090
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
add eax, ecx
push dword [esp + 0x44]
push ebp
mov byte [eax + ebx], 0
lea eax, [ecx + ebx]
mov esi, dword [edi + 0x28]
push eax
push edi
mov dword [edi + 0x28], 0
call fcn.0047a210
add esp, 0x1c
test eax, eax
jne 0x47a7f3
add dword [edi + 0x28], esi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
cmp ebx, esi
jb 0x47a360
mov ecx, dword [esp + 0x6c]
cmp dword [edi + 0x28], 0
je 0x47a7cc
push ecx
push edi
call fcn.00477ff0
add esp, 8
xor eax, eax
mov ecx, 3
cmp byte [edi + 0x23], al
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
add esp, 0x54
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret