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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
push esi
push edi
mov edi, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax*2]
lea ecx, [ebp - 0x18]
lea ebx, [edi + eax*8]
push ecx
mov eax, edi
call fcn.00402150
add esp, 4
mov eax, ebx
lea esi, [ebx + 0x18]
cmp edi, ebx
jae 0x401ca2
nop
mov ecx, dword [eax - 0x18]
mov edx, dword [eax]
cmp edx, ecx
jg 0x401ca2
jl 0x401ca2
add eax, 0xffffffe8
cmp edi, eax
jb 0x401c90
cmp esi, ebp
jae 0x401cb7
mov edx, dword [eax]
mov ecx, dword [esi]
cmp edx, ecx
jg 0x401cb7
jl 0x401cb7
add esi, 0x18
cmp esi, ebp
jb 0x401ca8
mov ecx, esi
mov edi, eax
jmp 0x401cc0
cmp ecx, dword [esp + 0xc4]
jae 0x401d63
lea ecx, [ecx]
mov edx, dword [ecx]
mov ebx, dword [eax]
cmp edx, ebx
jg 0x401d53
jl 0x401d63
mov edx, esi
add esi, 0x18
cmp edx, ecx
je 0x401d53
mov ebp, dword [edx + 4]
mov ebx, dword [edx]
mov dword [esp + 0x2c], ebp
mov ebp, dword [edx + 8]
mov dword [esp + 0x30], ebp
mov ebp, dword [edx + 0xc]
mov dword [esp + 0x34], ebp
mov ebp, dword [edx + 0x10]
mov dword [esp + 0x38], ebp
mov ebp, dword [edx + 0x14]
mov dword [esp + 0x3c], ebp
mov ebp, dword [ecx]
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov ebp, dword [ecx + 0xc]
mov dword [edx + 0xc], ebp
mov ebp, dword [ecx + 0x10]
mov dword [edx + 0x10], ebp
mov ebp, dword [ecx + 0x14]
mov dword [edx + 0x14], ebp
mov edx, dword [esp + 0x2c]
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x14], edx
add ecx, 0x18
cmp ecx, dword [esp + 0xc4]
jb 0x401cd0
cmp edi, dword [esp + 0xc0]
jbe 0x401e0e
lea edx, [edi - 0x18]
mov ebx, dword [edx]
mov ebp, dword [eax]
cmp ebp, ebx
jg 0x401df4
jl 0x401e07
sub eax, 0x18
cmp eax, edx
je 0x401df4
mov ebp, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x44], ebp
mov ebp, dword [eax + 8]
mov dword [esp + 0x48], ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x4c], ebp
mov ebp, dword [eax + 0x10]
mov dword [esp + 0x50], ebp
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x54], ebp
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov ebp, dword [edx + 0xc]
mov dword [eax + 0xc], ebp
mov ebp, dword [edx + 0x10]
mov dword [eax + 0x10], ebp
mov ebp, dword [edx + 0x14]
mov dword [eax + 0x14], ebp
mov dword [edx], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0x50]
mov dword [edx + 0x10], ebx
mov ebx, dword [esp + 0x54]
mov dword [edx + 0x14], ebx
sub edi, 0x18
sub edx, 0x18
cmp dword [esp + 0xc0], edi
jb 0x401d73
cmp edi, dword [esp + 0xc0]
jne 0x401f1b
cmp ecx, dword [esp + 0xc4]
je 0x4020be
cmp esi, ecx
je 0x401e8d
cmp eax, esi
je 0x401e8d
mov ebp, dword [eax + 8]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x60], ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x64], ebp
mov ebp, dword [eax + 0x10]
mov dword [esp + 0x68], ebp
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esi]
mov dword [eax], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 4], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 8], ebp
mov ebp, dword [esi + 0xc]
mov dword [eax + 0xc], ebp
mov ebp, dword [esi + 0x10]
mov dword [eax + 0x10], ebp
mov ebp, dword [esi + 0x14]
mov dword [eax + 0x14], ebp
mov dword [esi], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov edx, dword [esp + 0x64]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x14], edx
mov edx, ecx
mov ebx, eax
add esi, 0x18
add eax, 0x18
add ecx, 0x18
cmp ebx, edx
je 0x401cc0
mov ebp, dword [ebx]
mov dword [esp + 0x10], ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x14], ebp
mov ebp, dword [ebx + 8]
mov dword [esp + 0x18], ebp
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x20], ebp
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x24], ebp
mov ebp, dword [edx]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ebx + 8], ebp
mov ebp, dword [edx + 0xc]
mov dword [ebx + 0xc], ebp
mov ebp, dword [edx + 0x10]
mov dword [ebx + 0x10], ebp
mov ebp, dword [edx + 0x14]
mov dword [ebx + 0x14], ebp
mov ebx, dword [esp + 0x10]
mov dword [edx], ebx
mov ebx, dword [esp + 0x14]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [edx + 0x10], ebx
mov ebx, dword [esp + 0x24]
mov dword [edx + 0x14], ebx
jmp 0x401cc0
sub edi, 0x18
cmp ecx, dword [esp + 0xc4]
jne 0x402032
sub eax, 0x18
cmp edi, eax
je 0x401fb2
mov ebp, dword [edi + 8]
mov edx, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp + 0x90], ebp
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x94], ebp
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x98], ebp
mov ebp, dword [edi + 0x14]
mov dword [esp + 0x9c], ebp
mov ebp, dword [eax]
mov dword [edi], ebp
mov ebp, dword [eax + 4]
mov dword [edi + 4], ebp
mov ebp, dword [eax + 8]
mov dword [edi + 8], ebp
mov ebp, dword [eax + 0xc]
mov dword [edi + 0xc], ebp
mov ebp, dword [eax + 0x10]
mov dword [edi + 0x10], ebp
mov ebp, dword [eax + 0x14]
mov dword [edi + 0x14], ebp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 0x14], edx
sub esi, 0x18
cmp eax, esi
je 0x401cc0
mov ebp, dword [eax + 8]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x78], ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x7c], ebp
mov ebp, dword [eax + 0x10]
mov dword [esp + 0x80], ebp
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x84], ebp
mov ebp, dword [esi]
mov dword [eax], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 4], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 8], ebp
mov ebp, dword [esi + 0xc]
mov dword [eax + 0xc], ebp
mov ebp, dword [esi + 0x10]
mov dword [eax + 0x10], ebp
mov ebp, dword [esi + 0x14]
mov dword [eax + 0x14], ebp
mov dword [esi], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x80]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x14], edx
jmp 0x401cc0
cmp ecx, edi
je 0x4020b6
mov ebp, dword [ecx + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 0xa8], ebp
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0xac], ebp
mov ebp, dword [ecx + 0x10]
mov dword [esp + 0xb0], ebp
mov ebp, dword [ecx + 0x14]
mov dword [esp + 0xb4], ebp
mov ebp, dword [edi]
mov dword [ecx], ebp
mov ebp, dword [edi + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edi + 8]
mov dword [ecx + 8], ebp
mov ebp, dword [edi + 0xc]
mov dword [ecx + 0xc], ebp
mov ebp, dword [edi + 0x10]
mov dword [ecx + 0x10], ebp
mov ebp, dword [edi + 0x14]
mov dword [ecx + 0x14], ebp
mov dword [edi], edx
mov edx, dword [esp + 0xa8]
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov edx, dword [esp + 0xac]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0xb0]
mov dword [edi + 0x10], edx
mov edx, dword [esp + 0xb4]
mov dword [edi + 0x14], edx
add ecx, 0x18
jmp 0x401cc0
mov ecx, dword [esp + 0xbc]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0xa8
ret