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

Disassembly:
sub esp, 0x64
mov ecx, 1
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x14]
add ebp, 0x24
mov eax, ebx
mov edi, ebp
mov edx, dword [edi]
cmp edx, eax
jge 0x471956
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x47194c
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x62bdb8]
sar ecx, 0x10
cmp ecx, eax
jge 0x471ed8
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47198b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x471983
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x60], edx
js 0x471ed8
mov eax, dword [0x62bdb8]
cmp edx, eax
jle 0x4719b4
mov dword [esp + 0x60], eax
mov eax, dword [0x62bdc0]
mov ebx, dword [0x62bdc4]
imul eax, ecx
mov ebp, dword [esp + 0x78]
add eax, ebx
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [ebp]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 4]
add ecx, 0xffffff01
mov dword [esp + 0x48], edi
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], edx
jne 0x471bed
shl esi, 4
mov ebx, esi
mov dword [esp + 0x30], ebx
lea eax, [ebx + ebp + 0x14]
lea edx, [ebx + ebp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x78], eax
jmp 0x471a24
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jle 0x471abf
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov eax, 0x10
mov ecx, ebx
sub ebx, eax
sub esi, eax
sub edx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x24], edx
jge 0x471a68
mov eax, 0x40
add ebx, eax
add esi, eax
add edx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x18], eax
js 0x471abf
mov edx, dword [ecx + ebp + 0x18]
mov esi, dword [ecx + ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + ebp + 0x1c]
mov ecx, eax
mov dword [esp + 0x38], esi
sub ecx, edi
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x471aaf
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x5c], eax
mov eax, esi
sar eax, 0x10
jns 0x471abf
imul eax, dword [esp + 0x44]
sub dword [esp + 0x10], eax
cmp edi, dword [esp + 0x34]
jle 0x471b11
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov ecx, eax
add esi, 0x10
shl ecx, 4
inc eax
mov dword [esp + 0x28], esi
cmp eax, 4
mov dword [esp + 0x1c], eax
jl 0x471af3
sub eax, 4
mov dword [esp + 0x1c], eax
mov eax, esi
sub eax, 0x40
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [ecx + ebp + 0x10]
mov dword [esp + 0x3c], eax
test edi, edi
jl 0x471bb6
mov eax, dword [esp + 0x38]
mov edx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, edx
jge 0x471bb6
mov ecx, dword [esp + 0x3c]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x471bb6
lea esi, [ecx + eax]
cmp esi, edx
jle 0x471b46
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x471b50
add ecx, eax
js 0x471bb6
xor eax, eax
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
lea esi, [eax + edx]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
sar eax, 9
and eax, 0x7f80
add eax, edx
mov edx, edi
sar edx, 0x10
and edx, 0x7f
mov dl, byte [edx + eax]
test dl, dl
mov byte [esp + 0x40], dl
je 0x471ba6
mov edx, dword [esp + 0x40]
xor ebx, ebx
and edx, 0xff
mov bl, byte [edx + 0x5ae700]
shl ebx, 8
xor edx, edx
mov dl, byte [esi]
mov dl, byte [ebx + edx + 0x5d3ea0]
mov ebx, dword [esp + 0x30]
mov byte [esi], dl
mov edx, dword [esp + 0x44]
inc esi
add edi, edx
dec ecx
test ecx, ecx
jg 0x471b6d
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x62bdc0]
inc edi
add edx, ecx
cmp edi, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edx
jl 0x471a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, esi
shl eax, 4
inc esi
mov dword [esp + 0x4c], eax
shl esi, 4
lea edx, [eax + ebp + 0x1c]
lea ebx, [esi + ebp]
mov dword [esp + 0x30], edx
lea esi, [eax + ebp + 0x14]
lea edx, [eax + ebp + 0x18]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
jmp 0x471c33
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
cmp edi, ecx
jle 0x471d22
mov edx, dword [esp + 0x24]
mov ecx, eax
sub edx, 0x10
sub eax, 0x10
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
sub edx, 0x10
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
sub edx, 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
sub edx, 0x10
test eax, eax
mov dword [esp + 0x30], edx
jge 0x471ca7
mov edx, 0x40
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x18], eax
js 0x471d22
mov edx, dword [ecx + ebp + 0x10]
mov eax, dword [ecx + ebp + 0x18]
mov ecx, dword [ecx + ebp + 0x1c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
sub ecx, edi
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x471d22
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x68], eax
je 0x471cf6
cdq
idiv ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x6c], eax
je 0x471d0f
cdq
idiv ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x5c], eax
cmp edi, dword [esp + 0x34]
jle 0x471d93
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov ecx, eax
add ebx, 0x10
shl ecx, 4
inc eax
mov dword [esp + 0x50], esi
cmp eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], ebx
jl 0x471d5e
sub eax, 4
sub esi, 0x40
sub ebx, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov eax, dword [esi]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x34], eax
js 0x471d93
mov edx, dword [ecx + ebp + 0x10]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x3c], edx
test ecx, ecx
jle 0x471d93
mov eax, dword [ebx]
sub eax, edx
mov dword [esp + 0x70], eax
je 0x471d93
cdq
idiv ecx
mov dword [esp + 0x70], eax
test edi, edi
jl 0x471e7f
mov eax, dword [esp + 0x38]
mov ecx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, ecx
jge 0x471e7f
mov esi, dword [esp + 0x3c]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x471e7f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebx, [esi + eax]
cmp ebx, dword [0x62bdbc]
jle 0x471ddc
mov esi, dword [0x62bdbc]
sub esi, eax
test eax, eax
jge 0x471e02
add esi, eax
js 0x471e7f
mov edx, eax
imul eax, dword [esp + 0x64]
imul edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x14]
sub edx, eax
xor eax, eax
mov edi, dword [esp + 0x20]
add edi, eax
test edx, edx
jge 0x471e21
mov ebx, dword [esp + 0x58]
mov eax, ecx
sar eax, 0x10
and eax, 0x7f
mov al, byte [eax + ebx]
mov byte [esp + 0x40], al
jmp 0x471e44
mov ebp, dword [esp + 0x58]
mov eax, edx
mov ebx, ecx
sar eax, 9
sar ebx, 0x10
and eax, 0x7f80
and ebx, 0x7f
add ebp, eax
mov al, byte [ebx + ebp]
mov ebp, dword [esp + 0x78]
mov byte [esp + 0x40], al
test al, al
je 0x471e69
mov eax, dword [esp + 0x40]
xor ebx, ebx
and eax, 0xff
mov bl, byte [eax + 0x5ae700]
shl ebx, 8
xor eax, eax
mov al, byte [edi]
mov al, byte [ebx + eax + 0x5d3ea0]
mov byte [edi], al
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
inc edi
add ecx, ebx
add edx, eax
dec esi
test esi, esi
jg 0x471e08
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x6c]
add esi, ecx
mov ecx, dword [esp + 0x20]
add eax, edx
mov edx, dword [0x62bdc0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
add ecx, edx
add ebx, eax
mov eax, dword [esp + 0x60]
inc edi
mov dword [esp + 0x14], ebx
cmp edi, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], ecx
jl 0x471c23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret