Function at 0x4741c0
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 0x4741e6
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x4741dc
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x608798]
sar ecx, 0x10
cmp ecx, eax
jge 0x474795
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47421b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x474213
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x60], edx
js 0x474795
mov eax, dword [0x608798]
cmp edx, eax
jle 0x474244
mov dword [esp + 0x60], eax
mov eax, ecx
mov ebx, dword [0x6087a4]
imul eax, dword [0x6087a0]
add eax, ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
add ecx, 0xffffff01
mov dword [esp + 0x44], edi
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], edx
jne 0x474493
mov ebp, dword [esp + 0x50]
shl esi, 4
mov dword [esp + 0x3c], esi
lea eax, [ebx + esi + 0x14]
lea edx, [ebx + esi + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
jmp 0x4742b6
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jle 0x47435b
mov edx, dword [esp + 0x24]
mov eax, 0x10
sub edx, eax
mov ecx, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
sub esi, eax
sub edx, eax
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
jge 0x474302
mov edx, dword [esp + 0x24]
mov eax, 0x40
add edx, eax
add esi, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x14], eax
js 0x47435b
mov edx, dword [ebx + ecx + 0x10]
mov eax, dword [ebx + ecx + 0x18]
mov ebp, dword [ebx + ecx + 0x1c]
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov dword [esp + 0x1c], edx
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x474347
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
sub eax, ebp
cdq
idiv ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
sar eax, 0x10
jns 0x47435b
mov ecx, dword [esp + 0x4c]
imul ecx, eax
sub dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x38]
jle 0x4743ad
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, eax
add edx, 0x10
shl ecx, 4
inc eax
mov dword [esp + 0x2c], edx
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x47438f
sub eax, 4
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, 0x40
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [ebx + ecx + 0x10]
mov dword [esp + 0x40], eax
test edi, edi
jl 0x474465
mov eax, dword [esp + 0x1c]
mov edx, dword [0x60879c]
sar eax, 0x10
cmp eax, edx
jge 0x474465
mov ecx, dword [esp + 0x40]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x474465
lea esi, [ecx + eax]
cmp esi, edx
jle 0x4743e6
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x4743f0
add ecx, eax
js 0x474461
xor eax, eax
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
lea esi, [edx + eax*2]
mov edx, dword [esp + 0x58]
mov eax, ebp
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 + 0x48], dl
je 0x47444f
mov edx, dword [esp + 0x48]
xor ebx, ebx
and edx, 0xff
mov bl, byte [edx + 0x5b0780]
xor edx, edx
mov dx, word [ebx*2 + 0x58a6a0]
xor ebx, ebx
mov bl, byte [esi]
and ebx, dword [0x58a630]
add edx, ebx
mov ebx, dword [esp + 0x78]
shr edx, 1
mov word [esi], dx
mov edx, dword [esp + 0x4c]
add esi, 2
add edi, edx
dec ecx
test ecx, ecx
jg 0x47440b
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
add ebp, eax
mov eax, dword [0x6087a0]
add ecx, eax
mov eax, dword [esp + 0x60]
inc edi
mov dword [esp + 0x20], ecx
cmp edi, eax
mov dword [esp + 0x44], edi
jl 0x4742b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, esi
shl eax, 4
inc esi
mov dword [esp + 0x54], eax
lea ebp, [ebx + eax + 0x1c]
lea edx, [ebx + eax + 0x14]
shl esi, 4
mov dword [esp + 0x30], ebp
lea ebp, [ebx + eax + 0x18]
add esi, ebx
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
jmp 0x4744d4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jle 0x4745b9
mov esi, dword [esp + 0x28]
mov edx, 0x10
sub esi, edx
mov ecx, eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
sub esi, edx
sub eax, edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
sub esi, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
sub esi, edx
mov dword [esp + 0x30], esi
mov esi, 0x40
test eax, eax
jge 0x474548
mov edx, dword [esp + 0x28]
add eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
add edx, esi
add eax, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add edx, esi
add eax, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x14], eax
js 0x4745be
mov edx, dword [ebx + ecx + 0x10]
mov esi, dword [ebx + ecx + 0x18]
mov ebp, dword [ebx + ecx + 0x1c]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x1c], edx
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], ebp
jle 0x4745b9
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x68], eax
je 0x474595
cdq
idiv ecx
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
sub eax, esi
mov dword [esp + 0x6c], eax
je 0x4745aa
cdq
idiv ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
sub eax, ebp
cdq
idiv ecx
mov dword [esp + 0x5c], eax
mov esi, 0x40
cmp edi, dword [esp + 0x38]
jle 0x47463c
mov eax, dword [esp + 0x18]
mov edx, 0x10
add dword [esp + 0x34], edx
add dword [esp + 0x3c], edx
mov ecx, eax
shl ecx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x4745ff
mov edx, dword [esp + 0x34]
sub eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
sub edx, esi
sub eax, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dword [esp + 0x38], eax
js 0x47463c
mov edx, dword [ebx + ecx + 0x10]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x40], edx
test ecx, ecx
jle 0x47463c
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x70], eax
je 0x47463c
cdq
idiv ecx
mov dword [esp + 0x70], eax
test edi, edi
jl 0x474740
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x60879c]
sar eax, 0x10
cmp eax, ecx
jge 0x474740
mov esi, dword [esp + 0x40]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x474740
mov ecx, dword [esp + 0x10]
lea edi, [esi + eax]
cmp edi, dword [0x60879c]
mov edx, ebp
jle 0x474683
mov esi, dword [0x60879c]
sub esi, eax
test eax, eax
jge 0x4746a9
add esi, eax
js 0x47473c
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x64]
imul edx, eax
imul edi, eax
mov ecx, dword [esp + 0x10]
sub ecx, edx
mov edx, ebp
sub edx, edi
xor eax, eax
mov edi, dword [esp + 0x20]
lea edi, [edi + eax*2]
test edx, edx
jge 0x4746c9
mov ebx, dword [esp + 0x58]
mov eax, ecx
sar eax, 0x10
and eax, 0x7f
mov al, byte [eax + ebx]
mov byte [esp + 0x48], al
jmp 0x4746ec
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 + 0x50]
mov byte [esp + 0x48], al
mov ebx, dword [esp + 0x78]
test al, al
je 0x474724
mov eax, dword [esp + 0x48]
xor ebx, ebx
and eax, 0xff
mov bl, byte [eax + 0x5b0780]
xor eax, eax
mov ax, word [ebx*2 + 0x58a6a0]
xor ebx, ebx
mov bl, byte [edi]
and ebx, dword [0x58a630]
add eax, ebx
mov ebx, dword [esp + 0x78]
shr eax, 1
mov word [edi], ax
mov eax, dword [esp + 0x4c]
add edi, 2
add ecx, eax
mov eax, dword [esp + 0x64]
add edx, eax
dec esi
test esi, esi
jg 0x4746b0
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
add esi, edx
mov edx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x60]
add ebp, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x6087a0]
inc edi
add edx, ecx
cmp edi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edx
jl 0x4744cc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret