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

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x50]
push ebx
mov ebx, ecx
mov eax, dword [esp + 0x44]
imul ebx, dword [esp + 0x48]
push ebp
mov edx, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x3c]
add ebx, edi
mov ebp, dword [esp + 0x64]
add ebx, eax
mov eax, dword [esp + 0x40]
imul edx, eax
add esi, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea esi, [esi + edx*4]
cdq
and edx, 3
mov dword [esp + 0x3c], esi
add edx, eax
mov eax, dword [esp + 0x70]
add eax, ecx
mov ecx, dword [esp + 0x6c]
imul eax, dword [esp + 0x68]
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x74]
add eax, edi
mov edi, dword [esp + 0x58]
sar edx, 2
mov edi, dword [edi + 0x404]
cmp ebp, 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
jge 0x40c3db
mov ecx, dword [esp + 0x78]
test ecx, ecx
jle 0x40ca0b
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x64], ecx
jmp 0x40c2a1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x40c399
mov dword [esp + 0x70], ecx
mov dl, byte [eax]
test dl, dl
mov byte [esp + 0x6c], dl
je 0x40c37d
cmp dl, 0xff
jne 0x40c2d2
xor ecx, ecx
mov cl, byte [ebx]
mov edx, dword [edi + ecx*4]
mov dword [esi], edx
jmp 0x40c37d
mov ecx, dword [esi]
mov edx, dword [ebp + 4]
and ecx, edx
mov dword [esp + 0x40], edx
mov edx, dword [esi]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
xor eax, eax
mov al, byte [ebx]
and ecx, 0xff
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x24]
mov eax, dword [edi + eax*4]
and edx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], edx
mov edx, dword [esi]
and edx, ebp
mov ebp, eax
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x40]
and ebp, edx
mov edx, dword [esp + 0x60]
sub ebp, edx
imul ebp, dword [esp + 0x4c]
sar ebp, 8
add ebp, edx
mov edx, dword [esp + 0x40]
and ebp, edx
mov edx, eax
and edx, ecx
mov ecx, dword [esp + 0x78]
sub edx, ecx
imul edx, dword [esp + 0x4c]
sar edx, 8
add edx, ecx
mov ecx, dword [esp + 0x58]
and edx, ecx
or ebp, edx
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x78], ecx
and eax, ecx
mov ecx, dword [esp + 0x5c]
sub eax, ecx
imul eax, dword [esp + 0x4c]
sar eax, 8
add eax, ecx
mov ecx, dword [esp + 0x78]
and eax, ecx
mov ecx, dword [esp + 0x60]
or ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esi], ecx
mov ecx, dword [esp + 0x70]
inc ebx
add esi, 4
inc eax
dec ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], ecx
jne 0x40c2b1
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
add ebx, esi
lea esi, [eax + edx*4]
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], esi
dec eax
mov dword [esp + 0x64], eax
jne 0x40c29d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, ecx
mov ebp, 4
cdq
xor eax, edx
sub eax, edx
and eax, 3
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x74]
sub ebp, eax
lea eax, [edx + ecx]
mov dword [esp + 0x70], ebp
cdq
xor eax, edx
sub eax, edx
and eax, 3
xor eax, edx
mov ecx, eax
sub ecx, edx
cmp ebp, 4
mov dword [esp + 0x34], ecx
jne 0x40c41e
mov dword [esp + 0x70], 0
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
sub eax, ecx
sub eax, ebp
sar eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x40ca0b
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
jmp 0x40c447
mov ebp, dword [esp + 0x70]
test ebp, ebp
jle 0x40c523
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x50]
mov al, byte [eax]
test al, al
mov byte [esp + 0x6c], al
je 0x40c503
cmp al, 0xff
jne 0x40c477
xor edx, edx
mov dl, byte [ebx]
mov eax, dword [edi + edx*4]
mov dword [esi], eax
jmp 0x40c503
mov ebp, dword [esi]
mov eax, dword [ecx + 4]
xor edx, edx
mov dl, byte [ebx]
mov ebx, ebp
and ebx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x60], ebx
mov ebx, dword [ecx + 0x14]
mov edx, dword [edi + edx*4]
and ebp, ebx
mov ebx, dword [ecx + 0x24]
mov dword [esp + 0x78], ebp
mov ebp, dword [esi]
and eax, 0xff
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and ebp, ebx
mov ebx, dword [esp + 0x60]
sub ebp, ebx
mov dword [esp + 0x4c], eax
imul ebp, eax
mov eax, dword [ecx + 4]
sar ebp, 8
add ebp, ebx
mov ebx, dword [ecx + 0x14]
and ebp, eax
mov eax, edx
and eax, ebx
mov ebx, dword [esp + 0x78]
sub eax, ebx
imul eax, dword [esp + 0x4c]
sar eax, 8
add eax, ebx
mov ebx, dword [ecx + 0x14]
and eax, ebx
mov ebx, dword [esp + 0x5c]
or ebp, eax
mov eax, dword [ecx + 0x24]
and edx, eax
sub edx, ebx
imul edx, dword [esp + 0x4c]
sar edx, 8
add edx, ebx
mov ebx, dword [esp + 0x14]
and edx, eax
or ebp, edx
mov dword [esi], ebp
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
inc ebx
add esi, 4
inc edx
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x74], eax
jne 0x40c453
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ebp, esi
mov dword [esp + 0x74], ebx
test edx, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], eax
jle 0x40c8d8
add eax, 2
add esi, 8
mov dword [esp + 0x40], eax
lea eax, [ebx + 2]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x44]
mov edx, dword [edx]
test edx, edx
je 0x40c896
cmp edx, 0xffffffff
jne 0x40c59b
mov ebx, dword [esp + 0x74]
xor edx, edx
mov dl, byte [ebx]
mov edx, dword [edi + edx*4]
mov dword [ebp], edx
xor edx, edx
mov dl, byte [eax - 1]
mov edx, dword [edi + edx*4]
mov dword [esi - 4], edx
xor edx, edx
mov dl, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esi], edx
xor edx, edx
mov dl, byte [eax + 1]
mov edx, dword [edi + edx*4]
mov dword [esi + 4], edx
jmp 0x40c896
mov edx, dword [esp + 0x44]
mov dl, byte [edx]
test dl, dl
mov byte [esp + 0x24], dl
je 0x40c669
cmp dl, 0xff
jne 0x40c5c5
mov ebx, dword [esp + 0x74]
xor edx, edx
mov dl, byte [ebx]
mov edx, dword [edi + edx*4]
mov dword [ebp], edx
jmp 0x40c669
mov edx, dword [esp + 0x74]
mov ebp, dword [ebp]
xor eax, eax
mov ebx, ebp
mov al, byte [edx]
mov dword [esp + 0x5c], ebp
mov edx, dword [edi + eax*4]
mov eax, dword [ecx + 4]
and ebx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], ebx
mov ebx, dword [ecx + 0x14]
and ebp, ebx
mov ebx, dword [ecx + 0x24]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x5c]
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and ebp, ebx
mov ebx, dword [esp + 0x60]
and eax, 0xff
sub ebp, ebx
imul ebp, eax
sar ebp, 8
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 4]
add ebp, ebx
mov ebx, dword [ecx + 0x14]
and ebp, eax
mov eax, edx
and eax, ebx
mov ebx, dword [esp + 0x78]
sub eax, ebx
imul eax, dword [esp + 0x64]
sar eax, 8
add eax, ebx
mov ebx, dword [ecx + 0x14]
and eax, ebx
mov ebx, dword [esp + 0x5c]
or ebp, eax
mov eax, dword [ecx + 0x24]
and edx, eax
sub edx, ebx
imul edx, dword [esp + 0x64]
sar edx, 8
add edx, ebx
and edx, eax
mov eax, dword [esp + 0x50]
or ebp, edx
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x78]
mov dword [ebp], edx
mov edx, dword [esp + 0x40]
mov dl, byte [edx - 1]
test dl, dl
mov byte [esp + 0x28], dl
je 0x40c725
cmp dl, 0xff
jne 0x40c691
xor edx, edx
mov dl, byte [eax - 1]
mov edx, dword [edi + edx*4]
mov dword [esi - 4], edx
jmp 0x40c725
mov ebp, dword [esi - 4]
xor edx, edx
mov dl, byte [eax - 1]
mov eax, dword [ecx + 4]
mov ebx, ebp
and ebx, eax
mov edx, dword [edi + edx*4]
mov dword [esp + 0x60], ebx
mov ebx, dword [ecx + 0x14]
and ebp, ebx
mov ebx, dword [ecx + 0x24]
mov dword [esp + 0x78], ebp
mov ebp, dword [esi - 4]
mov eax, dword [esp + 0x28]
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and eax, 0xff
and ebp, ebx
mov ebx, dword [esp + 0x60]
sub ebp, ebx
mov dword [esp + 0x64], eax
imul ebp, eax
mov eax, dword [ecx + 4]
sar ebp, 8
add ebp, ebx
mov ebx, dword [ecx + 0x14]
and ebp, eax
mov eax, edx
and eax, ebx
mov ebx, dword [esp + 0x78]
sub eax, ebx
imul eax, dword [esp + 0x64]
sar eax, 8
add eax, ebx
mov ebx, dword [ecx + 0x14]
and eax, ebx
mov ebx, dword [esp + 0x5c]
or ebp, eax
mov eax, dword [ecx + 0x24]
and edx, eax
sub edx, ebx
imul edx, dword [esp + 0x64]
sar edx, 8
add edx, ebx
and edx, eax
mov eax, dword [esp + 0x50]
or ebp, edx
mov dword [esi - 4], ebp
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov dl, byte [edx]
test dl, dl
mov byte [esp + 0x2c], dl
je 0x40c7da
cmp dl, 0xff
jne 0x40c74a
xor edx, edx
mov dl, byte [eax]
mov edx, dword [edi + edx*4]
mov dword [esi], edx
jmp 0x40c7da
mov ebp, dword [esi]
xor edx, edx
mov dl, byte [eax]
mov eax, dword [ecx + 4]
mov ebx, ebp
and ebx, eax
mov edx, dword [edi + edx*4]
mov dword [esp + 0x60], ebx
mov ebx, dword [ecx + 0x14]
and ebp, ebx
mov ebx, dword [ecx + 0x24]
mov dword [esp + 0x78], ebp
mov ebp, dword [esi]
mov eax, dword [esp + 0x2c]
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and eax, 0xff
and ebp, ebx
mov ebx, dword [esp + 0x60]
sub ebp, ebx
mov dword [esp + 0x64], eax
imul ebp, eax
mov eax, dword [ecx + 4]
sar ebp, 8
add ebp, ebx
mov ebx, dword [ecx + 0x14]
and ebp, eax
mov eax, edx
and eax, ebx
mov ebx, dword [esp + 0x78]
sub eax, ebx
imul eax, dword [esp + 0x64]
sar eax, 8
add eax, ebx
mov ebx, dword [ecx + 0x14]
and eax, ebx
mov ebx, dword [esp + 0x5c]
or ebp, eax
mov eax, dword [ecx + 0x24]
and edx, eax
sub edx, ebx
imul edx, dword [esp + 0x64]
sar edx, 8
add edx, ebx
and edx, eax
mov eax, dword [esp + 0x50]
or ebp, edx
mov dword [esi], ebp
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov dl, byte [edx + 1]
test dl, dl
mov byte [esp + 0x30], dl
je 0x40c896
cmp dl, 0xff
jne 0x40c802
xor edx, edx
mov dl, byte [eax + 1]
mov edx, dword [edi + edx*4]
mov dword [esi + 4], edx
jmp 0x40c896
mov ebp, dword [esi + 4]
xor edx, edx
mov dl, byte [eax + 1]
mov eax, dword [ecx + 4]
mov ebx, ebp
and ebx, eax
mov edx, dword [edi + edx*4]
mov dword [esp + 0x60], ebx
mov ebx, dword [ecx + 0x14]
and ebp, ebx
mov ebx, dword [ecx + 0x24]
mov dword [esp + 0x78], ebp
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0x30]
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and eax, 0xff
and ebp, ebx
mov ebx, dword [esp + 0x60]
sub ebp, ebx
mov dword [esp + 0x64], eax
imul ebp, eax
mov eax, dword [ecx + 4]
sar ebp, 8
add ebp, ebx
mov ebx, dword [ecx + 0x14]
and ebp, eax
mov eax, edx
and eax, ebx
mov ebx, dword [esp + 0x78]
sub eax, ebx
imul eax, dword [esp + 0x64]
sar eax, 8
add eax, ebx
mov ebx, dword [ecx + 0x14]
and eax, ebx
mov ebx, dword [esp + 0x5c]
or ebp, eax
mov eax, dword [ecx + 0x24]
and edx, eax
sub edx, ebx
imul edx, dword [esp + 0x64]
sar edx, 8
add edx, ebx
and edx, eax
mov eax, dword [esp + 0x50]
or ebp, edx
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x74]
mov edx, 4
add ebx, edx
add eax, edx
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x44]
add ebx, edx
add ebp, 0x10
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x40]
add ebx, edx
mov edx, dword [esp + 0x58]
add esi, 0x10
dec edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], edx
jne 0x40c556
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
jle 0x40c9c9
mov esi, dword [esp + 0x74]
mov ebx, edx
sub esi, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], esi
mov al, byte [edx]
test al, al
je 0x40c9ae
cmp al, 0xff
jne 0x40c91e
xor eax, eax
mov al, byte [edx + esi]
mov eax, dword [edi + eax*4]
mov dword [ebp], eax
jmp 0x40c9ae
mov ebp, dword [ebp]
xor ebx, ebx
mov bl, byte [edx + esi]
mov esi, dword [ecx + 4]
and eax, 0xff
mov edx, dword [edi + ebx*4]
mov ebx, ebp
and ebx, esi
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x60], ebx
mov ebx, ebp
and ebx, esi
mov dword [esp + 0x78], ebx
mov ebx, dword [ecx + 0x24]
and ebp, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x5c], ebp
mov ebp, edx
and ebp, ebx
mov ebx, dword [esp + 0x60]
sub ebp, ebx
imul ebp, eax
sar ebp, 8
add ebp, ebx
mov ebx, dword [ecx + 4]
and ebp, ebx
mov ebx, edx
and ebx, esi
mov esi, dword [esp + 0x78]
sub ebx, esi
imul ebx, eax
sar ebx, 8
add ebx, esi
mov esi, dword [ecx + 0x14]
and ebx, esi
mov esi, dword [ecx + 0x24]
or ebp, ebx
mov ebx, dword [esp + 0x5c]
and edx, esi
sub edx, ebx
imul edx, eax
sar edx, 8
add edx, ebx
and edx, esi
mov esi, dword [esp + 0x40]
or ebp, edx
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov dword [ebp], edx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
add ebp, 4
inc edx
dec eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x74], eax
jne 0x40c900
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
add ebx, esi
lea esi, [eax + edx*4]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], ebx
add eax, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
dec eax
mov dword [esp + 0x1c], eax
jne 0x40c443
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret