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

Disassembly:
push 0xffffffffffffffff
push 0x45340b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x469424]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469424]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xdc]
mov ebp, dword [esp + 0xd8]
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0xd8], ebx
call fcn.0040d730
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add esp, 8
cmp edi, ebx
jne 0x40a1a6
mov dword [esp + 0x1c], ebx
jmp 0x40a1c1
mov esi, ecx
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
jbe 0x40a597
lea eax, [ebp + 0xfc]
lea edx, [ebp + 0xe0]
add ebp, 0xa8
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x40a210
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x38], eax
jb 0x40a219
call fcn.0043ae07
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
add eax, edi
push ebx
mov esi, 0xf
push eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.004019c0
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
mov byte [esp + 0xd8], 1
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.004019c0
mov edx, dword [esp + 0x48]
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x78]
mov byte [esp + 0xd8], 2
call fcn.00402a80
mov eax, dword [esp + 0x84]
cmp eax, ebx
jbe 0x40a33c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40a2b3
call fcn.0043ae07
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov edi, 0x10
cmp dword [esp + 0x88], edi
jae 0x40a2c9
lea ecx, [esp + 0x74]
cmp byte [ecx + esi], 0x5c
je 0x40a2f9
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40a2e2
call fcn.0043ae07
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x88], edi
mov ecx, dword [esp + 0x74]
jae 0x40a2f3
lea ecx, [esp + 0x74]
cmp byte [ecx + esi], 0x2f
jne 0x40a33c
add eax, 0xffffffff
push eax
xor ecx, ecx
lea esi, [esp + 0x58]
lea edx, [esp + 0x74]
call fcn.00401990
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xdc], 3
call fcn.004019c0
mov byte [esp + 0xd0], 2
cmp dword [esp + 0x6c], edi
jb 0x40a33c
mov eax, dword [esp + 0x58]
push eax
call fcn.0041edce
add esp, 4
mov eax, dword [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a343
push ebx
sub eax, edx
lea ecx, [esp + 0x74]
push ecx
push eax
lea edx, [esp + 0xb4]
push edx
or eax, 0xffffffff
xor esi, esi
call fcn.0040a950
push 0x78
call fcn.0041eda3
add esp, 4
cmp eax, ebx
je 0x40a3aa
mov dword [eax + 0x1c], ebx
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x20], edx
mov byte [eax + 0xc], bl
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x58], edx
mov dword [eax + 0x54], ebx
mov byte [eax + 0x44], bl
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov ebp, eax
jmp 0x40a3ac
xor ebp, ebp
cmp dword [esp + 0xc0], 0x10
mov edx, dword [esp + 0xac]
mov dword [esp + 0x3c], ebp
jae 0x40a3c8
lea edx, [esp + 0xac]
mov eax, edx
lea esi, [ebp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a3d0
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00401b50
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
call fcn.004019c0
mov ecx, dword [esp + 0x30]
mov byte [esp + 0xd0], 4
cmp dword [ecx + 0x18], 0x10
jb 0x40a42d
mov edx, ecx
mov eax, dword [edx + 4]
jmp 0x40a432
mov eax, ecx
add eax, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a435
mov ecx, dword [esp + 0x40]
push ebx
sub eax, edx
push ecx
push eax
lea edx, [esp + 0x98]
push edx
or eax, 0xffffffff
xor esi, esi
call fcn.0040a950
cmp dword [esp + 0xa4], 0x10
mov edx, dword [esp + 0x90]
jae 0x40a471
lea edx, [esp + 0x90]
mov eax, edx
lea esi, [ebp + 0x40]
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a480
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00401b50
push esi
call fcn.00401290
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40a4a9
xor edx, edx
jmp 0x40a4b5
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
mov edi, dword [esp + 0x34]
je 0x40a4d6
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x40a4d6
mov eax, dword [edi + 8]
mov dword [eax], ebp
add eax, 4
mov dword [edi + 8], eax
jmp 0x40a4f5
mov esi, dword [edi + 8]
cmp eax, esi
jbe 0x40a4e2
call fcn.0043ae07
push esi
push edi
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x58]
push eax
mov eax, edi
call fcn.00407fa0
mov esi, 0x10
cmp dword [esp + 0xa4], esi
jb 0x40a513
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041edce
add esp, 4
cmp dword [esp + 0x88], esi
mov edi, 0xf
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
jb 0x40a543
mov edx, dword [esp + 0x74]
push edx
call fcn.0041edce
add esp, 4
mov byte [esp + 0xd0], bl
cmp dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x40a575
mov eax, dword [esp + 0xac]
push eax
call fcn.0041edce
add esp, 4
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], 0x1c
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
jb 0x40a1f1
cmp edi, ecx
mov esi, ecx
jbe 0x40a5aa
call fcn.0043ae07
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, ecx
mov ebp, edi
mov dword [esp + 0x1c], ebp
jbe 0x40a5c1
call fcn.0043ae07
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp ebp, esi
je 0x40a665
mov ebp, ecx
sub ebp, esi
mov eax, 0x92492493
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
cmp esi, ecx
mov eax, dword [esp + 0x1c]
lea edx, [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edx
je 0x40a61d
mov edi, eax
sub edi, esi
mov ebp, ecx
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + esi]
call fcn.004019c0
add esi, 0x1c
cmp esi, ebp
jne 0x40a602
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmp esi, ecx
mov ebp, ecx
je 0x40a65f
add esi, 0x18
lea ebx, [ebx]
cmp dword [esi], 0x10
jb 0x40a641
mov eax, dword [esi - 0x14]
push eax
call fcn.0041edce
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, ebp
jne 0x40a630
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x28], ecx
cmp edi, ebx
je 0x40a6a6
cmp edi, ecx
mov ebp, ecx
je 0x40a69d
lea esi, [edi + 0x18]
cmp dword [esi], 0x10
jb 0x40a683
mov edx, dword [esi - 0x14]
push edx
call fcn.0041edce
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebp
jne 0x40a672
mov edi, dword [esp + 0x24]
push edi
call fcn.0041edce
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00439d55
add esp, 0xc0
ret 8