Function at 0x473630
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 0x473656
mov esi, ecx
mov eax, edx
inc ecx
add edi, 0x10
cmp ecx, 4
jl 0x47364c
cdq
and edx, 0xffff
add eax, edx
mov ecx, eax
mov eax, dword [0x62bdb8]
sar ecx, 0x10
cmp ecx, eax
jge 0x473bf7
mov eax, ebx
mov edi, ebp
mov ebx, 3
mov edx, dword [edi]
cmp edx, eax
jle 0x47368b
mov eax, edx
add edi, 0x10
dec ebx
jne 0x473683
cdq
and edx, 0xffff
add edx, eax
sar edx, 0x10
mov dword [esp + 0x60], edx
js 0x473bf7
mov eax, dword [0x62bdb8]
cmp edx, eax
jle 0x4736b4
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 0x4738fe
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 0x473724
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jle 0x4737bf
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 0x473768
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 0x4737bf
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 0x4737af
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 0x4737bf
imul eax, dword [esp + 0x44]
sub dword [esp + 0x10], eax
cmp edi, dword [esp + 0x34]
jle 0x473811
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 0x4737f3
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 0x4738c7
mov eax, dword [esp + 0x38]
mov edx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, edx
jge 0x4738c7
mov ecx, dword [esp + 0x3c]
sar ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4738c7
lea esi, [ecx + eax]
cmp esi, edx
jle 0x47384a
mov ecx, edx
sub ecx, eax
test eax, eax
jge 0x473854
add ecx, eax
js 0x4738c7
xor eax, eax
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
lea esi, [edx + eax*2]
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 0x4738b5
mov edx, dword [esp + 0x40]
xor ebx, ebx
and edx, 0xff
mov bl, byte [edx + 0x5d3da0]
xor edx, edx
mov dx, word [ebx*2 + 0x5adcc0]
xor ebx, ebx
mov bl, byte [esi]
and ebx, dword [0x5adc50]
add edx, ebx
mov ebx, dword [esp + 0x30]
shr edx, 1
mov word [esi], dx
mov edx, dword [esp + 0x44]
add esi, 2
add edi, edx
dec ecx
test ecx, ecx
jg 0x473871
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 0x473720
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 0x473944
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
cmp edi, ecx
jle 0x473a33
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 0x4739b8
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 0x473a33
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 0x473a33
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
sub eax, edx
mov dword [esp + 0x68], eax
je 0x473a07
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 0x473a20
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 0x473aa4
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 0x473a6f
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 0x473aa4
mov edx, dword [ecx + ebp + 0x10]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x3c], edx
test ecx, ecx
jle 0x473aa4
mov eax, dword [ebx]
sub eax, edx
mov dword [esp + 0x70], eax
je 0x473aa4
cdq
idiv ecx
mov dword [esp + 0x70], eax
test edi, edi
jl 0x473b9e
mov eax, dword [esp + 0x38]
mov ecx, dword [0x62bdbc]
sar eax, 0x10
cmp eax, ecx
jge 0x473b9e
mov esi, dword [esp + 0x3c]
sar esi, 0x10
sub esi, eax
test esi, esi
jle 0x473b9e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebx, [esi + eax]
cmp ebx, dword [0x62bdbc]
jle 0x473aed
mov esi, dword [0x62bdbc]
sub esi, eax
test eax, eax
jge 0x473b13
add esi, eax
js 0x473b9e
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]
lea edi, [edi + eax*2]
test edx, edx
jge 0x473b33
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 0x473b56
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 0x473b86
mov eax, dword [esp + 0x40]
xor ebx, ebx
and eax, 0xff
mov bl, byte [eax + 0x5d3da0]
xor eax, eax
mov ax, word [ebx*2 + 0x5adcc0]
xor ebx, ebx
mov bl, byte [edi]
and ebx, dword [0x5adc50]
add eax, ebx
shr eax, 1
mov word [edi], ax
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add edi, 2
add ecx, ebx
add edx, eax
dec esi
test esi, esi
jg 0x473b1a
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 0x473934
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret