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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x6c]
mov ecx, eax
imul ecx, ebx
push esi
push edi
mov edi, dword [esp + 0x6c]
xor esi, esi
mov dword [esp + 0x28], esi
lea edx, [ecx + edi]
sar ecx, 2
add ecx, edx
cmp ebx, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
jle 0x4057c7
lea edx, [eax + eax*2]
lea ecx, [eax + eax*2]
shl edx, 1
mov dword [esp + 0x1c], ecx
inc ebx
lea ecx, [edi + eax + 1]
push ebp
shr ebx, 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x30], ebx
test eax, eax
jle 0x40578c
mov ebp, dword [esp + 0x18]
lea edx, [ecx + 5]
lea eax, [ecx + 4]
lea edi, [ecx + 3]
lea ebx, [ecx + 2]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x1c]
inc ecx
add ebp, ecx
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x20]
add ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edx
sub ebp, eax
sub edx, ecx
mov dword [esp + 0x50], ebp
mov ebp, edi
sub ebp, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], ebp
mov ebp, ebx
sub ebp, eax
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], ebp
mov ebp, ecx
sub ebp, eax
sub ebx, ecx
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x6c]
sub ebp, eax
sub eax, ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
lea eax, [edx + 1]
sub ebx, ecx
sub edi, ecx
shr eax, 1
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ebp
xor edx, edx
mov ebp, dword [esp + 0x70]
mov dl, byte [edi + esi]
mov ecx, edx
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*8]
xor ecx, ecx
mov cl, byte [ebp]
lea ebp, [ecx + ecx*8]
lea ebp, [ecx + ebp*4]
lea ecx, [ecx + ebp*4]
lea ebp, [edx + ecx*2 - 0xdea0]
mov ecx, ebp
and cl, 0
cmp ecx, 0xff00
jle 0x40534e
mov ecx, 0xff
jmp 0x40535b
test ecx, ecx
jge 0x405356
xor ecx, ecx
jmp 0x40535b
sar ebp, 8
mov ecx, ebp
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x78]
mov byte [edx + ebp], cl
xor ecx, ecx
mov cl, byte [ebx + eax]
lea edx, [ecx + ecx*2]
lea ecx, [ecx + edx*8]
shl ecx, 2
mov edx, ecx
xor ecx, ecx
mov cl, byte [edi + esi]
lea ebp, [ecx*8]
sub ebp, ecx
shl ebp, 1
sub ebp, ecx
xor ecx, ecx
neg ebp
shl ebp, 4
sub ebp, edx
mov edx, dword [esp + 0x70]
mov cl, byte [edx]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ecx, [ecx + edx*4]
lea edx, [ebp + ecx*2 + 0x87e0]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x4053bb
mov edx, 0xff
jmp 0x4053c6
test ecx, ecx
jge 0x4053c3
xor edx, edx
jmp 0x4053c6
sar edx, 8
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x70]
mov byte [ecx], dl
xor ecx, ecx
mov cl, byte [ebx + eax]
mov edx, ecx
shl edx, 7
add edx, ecx
xor ecx, ecx
mov cl, byte [ebp]
lea ebp, [ecx + ecx*8]
lea ebp, [ecx + ebp*4]
lea ecx, [ecx + ebp*4]
shl ecx, 1
lea ebp, [ecx + edx*4 - 0x11420]
mov ecx, ebp
and cl, 0
cmp ecx, 0xff00
jle 0x405407
mov ecx, 0xff
jmp 0x405414
test ecx, ecx
jge 0x40540f
xor ecx, ecx
jmp 0x405414
sar ebp, 8
mov ecx, ebp
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x78]
mov byte [edx + ebp], cl
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov cl, byte [edx + 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ebp, [ecx + edx*4]
xor edx, edx
mov dl, byte [edi + esi]
mov ecx, edx
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*8]
lea edx, [edx + ebp*2 - 0xdea0]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x40545e
mov edx, 0xff
jmp 0x405469
test ecx, ecx
jge 0x405466
xor edx, edx
jmp 0x405469
sar edx, 8
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x78]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov cl, byte [edx + 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ecx, [ecx + edx*4]
shl ecx, 1
mov edx, ecx
xor ecx, ecx
mov cl, byte [ebx + eax]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*8]
shl ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [edi + esi]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*4]
shl ecx, 4
sub edx, ecx
add edx, 0x87e0
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x4054c4
mov edx, 0xff
jmp 0x4054cf
test ecx, ecx
jge 0x4054cc
xor edx, edx
jmp 0x4054cf
sar edx, 8
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov cl, byte [edx + 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea edx, [ecx + edx*4]
xor ecx, ecx
mov cl, byte [ebx + eax]
mov ebp, ecx
shl ebp, 7
add ebp, ecx
shl ebp, 2
lea edx, [ebp + edx*2 - 0x11420]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x405516
mov edx, 0xff
jmp 0x405521
test ecx, ecx
jge 0x40551e
xor edx, edx
jmp 0x405521
sar edx, 8
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x78]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ebp, [ecx + edx*4]
xor edx, edx
mov dl, byte [edi + esi]
mov ecx, edx
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*8]
lea edx, [edx + ebp*2 - 0xdea0]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x40556a
mov edx, 0xff
jmp 0x405575
test ecx, ecx
jge 0x405572
xor edx, edx
jmp 0x405575
sar edx, 8
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x14]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ecx, [ecx + edx*4]
shl ecx, 1
mov edx, ecx
xor ecx, ecx
mov cl, byte [ebx + eax]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*8]
shl ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [edi + esi]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*4]
shl ecx, 4
sub edx, ecx
add edx, 0x87e0
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x4055cf
mov edx, 0xff
jmp 0x4055da
test ecx, ecx
jge 0x4055d7
xor edx, edx
jmp 0x4055da
sar edx, 8
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov byte [ecx], dl
xor ecx, ecx
mov cl, byte [ebx + eax]
mov edx, ecx
shl edx, 7
add edx, ecx
xor ecx, ecx
mov cl, byte [ebp]
lea ebp, [ecx + ecx*8]
lea ebp, [ecx + ebp*4]
lea ecx, [ecx + ebp*4]
shl ecx, 1
lea ebp, [ecx + edx*4 - 0x11420]
mov ecx, ebp
and cl, 0
cmp ecx, 0xff00
jle 0x40561b
mov ecx, 0xff
jmp 0x405628
test ecx, ecx
jge 0x405623
xor ecx, ecx
jmp 0x405628
sar ebp, 8
mov ecx, ebp
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x14]
mov byte [edx + ebp], cl
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx - 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ebp, [ecx + edx*4]
xor edx, edx
mov dl, byte [edi + esi]
mov ecx, edx
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*8]
lea edx, [edx + ebp*2 - 0xdea0]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x405672
mov edx, 0xff
jmp 0x40567d
test ecx, ecx
jge 0x40567a
xor edx, edx
jmp 0x40567d
sar edx, 8
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x14]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx - 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea ecx, [ecx + edx*4]
shl ecx, 1
mov edx, ecx
xor ecx, ecx
mov cl, byte [ebx + eax]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*8]
shl ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [edi + esi]
lea ebp, [ecx + ecx*2]
lea ecx, [ecx + ebp*4]
shl ecx, 4
sub edx, ecx
add edx, 0x87e0
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x4056d8
mov edx, 0xff
jmp 0x4056e3
test ecx, ecx
jge 0x4056e0
xor edx, edx
jmp 0x4056e3
sar edx, 8
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x14]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx - 1]
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
lea edx, [ecx + edx*4]
xor ecx, ecx
mov cl, byte [ebx + eax]
mov ebp, ecx
shl ebp, 7
add ebp, ecx
shl ebp, 2
lea edx, [ebp + edx*2 - 0x11420]
mov ecx, edx
and cl, 0
cmp ecx, 0xff00
jle 0x40572a
mov edx, 0xff
jmp 0x405735
test ecx, ecx
jge 0x405732
xor edx, edx
jmp 0x405735
sar edx, 8
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x14]
inc eax
inc esi
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x78]
add edx, 6
add ebp, 6
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x70]
mov ecx, 2
add ebp, ecx
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], ebp
dec ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jne 0x40530f
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea edi, [eax + eax]
add ebx, edx
add ebp, edi
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
add ebx, edi
mov edi, dword [esp + 0x30]
add ebp, edx
dec edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
jne 0x405271
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret