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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp byte [eax + 2], 0
push ebx
push esi
movzx esi, byte [eax + 0xa]
push edi
mov edi, dword [ebp + 0xc]
je 0x473f4f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
add ebx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x80
jae 0x473f22
mov byte [esi + edi], bl
mov eax, 1
jmp 0x473f36
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004ad840
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add esi, eax
lea eax, [esi + edi]
push eax
call fcn.004ad840
add esp, 0xc
jmp 0x473f86
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x80
jae 0x473f72
mov byte [esi + edi], bl
mov eax, 1
jmp 0x473f83
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004ad840
add esp, 0xc
movzx eax, al
mov ecx, dword [ebp + 8]
add esi, eax
add edi, esi
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x18], eax
cmp ebx, eax
jg 0x473fd1
lea ecx, [ebx + esi]
cmp ecx, 4
jge 0x473fa5
mov ecx, 4
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
push esi
push dword [ebp - 4]
push edi
mov dword [eax], ecx
call fcn.005167a0
sub ebx, esi
lea eax, [edi + esi]
push ebx
push 0
push eax
call fcn.00516d20
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [ecx + 0x10]
mov eax, ebx
mov ecx, dword [ecx + 0x34]
sub eax, edx
mov dword [ebp - 0x1c], edx
xor edx, edx
mov ecx, dword [ecx + 0x28]
sub ecx, 4
div ecx
mov eax, dword [ebp - 0x1c]
add edx, eax
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 0x18]
jle 0x473ffb
mov edx, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
add edx, esi
lea ecx, [edx + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 0x34]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
lea esp, [esp]
mov esi, ecx
cmp ecx, eax
jle 0x474038
mov esi, eax
cmp edx, esi
jl 0x474048
push esi
push dword [ebp - 4]
push edi
call fcn.005167a0
jmp 0x474063
test edx, edx
jle 0x47405a
push edx
push dword [ebp - 4]
mov esi, edx
push edi
call fcn.005167a0
jmp 0x474063
push esi
push 0
push edi
call fcn.00516d20
mov ecx, dword [ebp - 0x10]
add esp, 0xc
sub ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x4741fe
mov edx, dword [ebp - 8]
add edi, esi
mov eax, dword [ebp - 0xc]
sub edx, esi
add dword [ebp - 4], esi
sub eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
jne 0x474030
mov esi, dword [ebp + 0xc]
mov edi, ebx
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
cmp byte [esi + 0x11], 0
je 0x4740f5
mov edi, dword [esi + 0x24]
inc ebx
cmp ebx, 2
jae 0x4740af
xor ecx, ecx
jmp 0x4740dd
mov eax, 0xcccccccd
lea ecx, [ebx - 2]
mul dword [esi + 0x28]
mov eax, ecx
mov esi, edx
xor edx, edx
shr esi, 2
inc esi
div esi
mov eax, dword [0x5857f8]
sub ecx, edx
xor edx, edx
div edi
add ecx, 2
inc eax
cmp ecx, eax
jne 0x4740da
inc ecx
mov esi, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4740a5
mov eax, dword [0x5857f8]
xor edx, edx
div edi
inc eax
cmp ebx, eax
je 0x4740a5
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push 0
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.004644d0
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp byte [ecx + 0x11], 0
je 0x474153
test esi, esi
jne 0x4741e5
lea eax, [ebp - 0xc]
test edi, edi
push eax
setne al
add al, 3
push edi
movzx eax, al
push eax
push ebx
push ecx
call fcn.00485790
mov esi, dword [ebp - 0xc]
add esp, 0x14
test esi, esi
je 0x47415b
mov eax, dword [ebp + 8]
test eax, eax
je 0x474153
push eax
call fcn.00486e50
add esp, 4
test esi, esi
jne 0x4741e5
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4741bc
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4741b3
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4741bc
push edx
call fcn.004aaac0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x1c], ecx
mov dword [ecx], 0
mov edi, dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
add edi, 4
mov eax, dword [eax + 0x28]
sub eax, 4
mov dword [ebp - 0xc], eax
jmp 0x474023
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4741f5
push eax
call fcn.00486e50
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47420e
push eax
call fcn.00486e50
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret