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

Disassembly:
push 0xffffffffffffffff
push 0x4a0127
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, dword [esp + 0x124]
mov ebp, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x11c], ebx
call fcn.0043d1a0
mov eax, dword [esi + 0x6c]
mov eax, dword [eax]
push esi
push eax
lea edx, [esp + 0xb0]
mov ecx, edi
call fcn.00421fc0
cmp eax, 2
jne 0x40af93
cmp dword [esp + 0xc0], 8
jb 0x40af89
mov edx, dword [esp + 0xac]
push edx
call fcn.0045a870
add esp, 4
mov eax, 7
jmp 0x40b71c
cmp eax, 1
jne 0x40afbd
mov ebp, 8
cmp dword [esp + 0xc0], ebp
jb 0x40afb6
mov eax, dword [esp + 0xac]
push eax
call fcn.0045a870
add esp, 4
mov eax, ebp
jmp 0x40b71c
mov eax, dword [esi + 0x20]
cmp eax, 2
je 0x40afd3
cmp eax, 9
je 0x40afd3
cmp eax, 0xa
jne 0x40b3b4
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x14]
push 0x4a9ce0
mov edi, 0x13
call fcn.0040e760
test eax, eax
je 0x40b3b4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x120], 1
mov eax, dword [esi + 0x5c]
push esi
push eax
lea edx, [esp + 0x3c]
mov ecx, ebp
call fcn.004100c0
add esp, 0xc
cmp dword [esp + 0x30], 1
mov byte [esp + 0x2b], al
jne 0x40b047
lea ebx, [esp + 0x18]
call fcn.0040e2c0
lea ecx, [esp + 0xa8]
call fcn.00401620
mov eax, 2
jmp 0x40b71c
lea ecx, [esp + 0x18]
call fcn.0040e330
test al, al
jne 0x40b3a2
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x120], 2
mov ecx, dword [esi + 0x5c]
push ebp
call fcn.004130b0
add esp, 8
xor ebp, ebp
mov dword [esp + 0x44], ebx
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b38b
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x40b38b
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
cmp dword [esi + ecx + 0x30], ebx
mov byte [esp + 0x30], bl
je 0x40b0d6
mov byte [esp + 0x30], 1
cmp ecx, ebx
je 0x40b0f3
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40b0fc
call fcn.00478a25
mov ecx, dword [esp + 0x1c]
cmp dword [esi + ecx + 0x4c], ebx
mov edi, ebp
lea esi, [esp + 0x18]
je 0x40b11f
call fcn.0040e370
lea ecx, [eax + 0x54]
lea eax, [esp + 0x70]
push eax
call fcn.0040f500
add esp, 4
jmp 0x40b139
call fcn.0040e370
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x74]
lea ecx, [eax + 0x54]
push edx
call fcn.0040f400
add esp, 8
cmp eax, 1
jne 0x40b1ab
mov edi, ebp
lea esi, [esp + 0x18]
call fcn.0040e370
add eax, 0x1c
push eax
call fcn.004339a0
add esp, 4
cmp al, bl
jne 0x40b1b0
push 3
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0xcc]
push ecx
mov edi, 0x9c
call fcn.0041aa70
lea eax, [esp + 0xc4]
mov byte [esp + 0x11c], 3
call fcn.0041a5b0
lea esi, [esp + 0xc4]
mov byte [esp + 0x11c], 2
call fcn.0044b2d0
mov esi, dword [esp + 0x48]
add ebp, 1
add dword [esp + 0x44], 0x70
jmp 0x40b090
cmp eax, 2
je 0x40b1c1
mov esi, dword [esp + 0x48]
add ebp, 1
add dword [esp + 0x44], 0x70
jmp 0x40b090
lea edx, [esp + 0xc4]
push edx
call fcn.0041a9a0
mov edi, ebp
lea esi, [esp + 0x18]
mov byte [esp + 0x11c], 4
call fcn.0040e370
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x70]
push ecx
add eax, 0x38
push eax
lea ecx, [esp + 0xcc]
call fcn.0040bc90
cmp eax, 1
je 0x40b23f
lea eax, [esp + 0xc4]
call fcn.0041a5b0
lea esi, [esp + 0xc4]
call fcn.0044b2d0
lea ecx, [esp + 0x70]
call fcn.00401620
lea ebx, [esp + 0x18]
call fcn.0040e2c0
lea ecx, [esp + 0xa8]
call fcn.00401620
mov eax, 4
jmp 0x40b71c
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
push ebx
add edi, 0x40
push edi
or eax, 0xffffffff
lea esi, [esp + 0x94]
mov byte [esp + 0x124], 5
call fcn.004036a0
mov edx, esi
push edx
mov edx, 0x4a9c18
call fcn.004035a0
mov edi, ebp
lea esi, [esp + 0x18]
call fcn.0040e370
add eax, 0x38
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x94]
call fcn.004036a0
mov eax, esi
push eax
mov edx, 0x4a9c18
call fcn.004035a0
lea esi, [esp + 0x18]
call fcn.0040e370
add eax, 0x38
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x94]
call fcn.004036a0
mov ecx, esi
push ecx
mov edx, 0x4a9c18
call fcn.004035a0
lea esi, [esp + 0x18]
call fcn.0040e370
add eax, 0x38
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x94]
call fcn.004036a0
mov edx, esi
push edx
mov edx, str..exe
call fcn.004035a0
push 0x5c
push 0x2f
mov edi, esi
call fcn.00404060
add esp, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [esp + 0x34]
mov ecx, esi
mov byte [esp + 0x11c], 6
call fcn.0043c490
test al, al
mov esi, ebx
jne 0x40b346
call fcn.004019a0
mov ecx, edi
call fcn.00401620
jmp 0x40b20b
call fcn.004019a0
lea ecx, [esp + 0x8c]
call fcn.00401620
lea esi, [esp + 0xc4]
call fcn.0044b2d0
lea ecx, [esp + 0x70]
call fcn.00401620
lea ebx, [esp + 0x18]
call fcn.0040e2c0
lea ecx, [esp + 0xa8]
call fcn.00401620
mov eax, 3
jmp 0x40b71c
lea ecx, [esp + 0x70]
call fcn.00401620
cmp byte [esp + 0x2b], bl
je 0x40b220
mov ebp, dword [esp + 0x50]
mov byte [esp + 0x11c], bl
lea ebx, [esp + 0x18]
call fcn.0040e2c0
xor ebx, ebx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x50]
push esi
lea ecx, [esi + 0x170]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
push eax
push ecx
lea edx, [esi + 0x100]
lea edi, [esi + 0x80]
push edx
mov eax, edi
call fcn.0041ad10
add esp, 0x20
cmp dword [esp + 0x34], 3
je 0x40b413
cmp dword [esp + 0xc0], 8
jb 0x40b409
mov eax, dword [esp + 0xac]
push eax
call fcn.0045a870
add esp, 4
mov eax, 9
jmp 0x40b71c
mov ecx, edi
call fcn.0040e200
test al, al
je 0x40b4b3
mov edx, 0x4a9464
lea eax, [esp + 0x8c]
call fcn.004015e0
mov edx, str.SETDIFF_NOT_FOUND
lea eax, [esp + 0x70]
mov byte [esp + 0x11c], 7
call fcn.004015e0
mov edx, 0x4a947c
lea eax, [esp + 0x54]
mov byte [esp + 0x11c], 8
call fcn.004015e0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x90]
lea edx, [esp + 0x58]
mov byte [esp + 0x120], 9
call fcn.004323e0
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00401620
lea ecx, [esp + 0x70]
call fcn.00401620
lea ecx, [esp + 0x8c]
call fcn.00401620
lea ecx, [esp + 0xa8]
call fcn.00401620
mov eax, 2
jmp 0x40b71c
lea edi, [esi + 0x104]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
mov dword [esp + 0x2c], edi
jbe 0x40b4ca
call fcn.00478a25
mov dword [esp + 0x38], esi
mov ebp, 8
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x40b4e0
call fcn.00478a25
cmp edi, edi
je 0x40b4e9
call fcn.00478a25
cmp dword [esp + 0x38], esi
je 0x40b70b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x11c], 0xa
push 1
push 0x4a9464
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.00401c20
mov edx, esi
push edx
lea esi, [esp + 0x1c]
mov byte [esp + 0x120], 0xb
call fcn.00401650
mov byte [esp + 0x11c], 0xa
cmp dword [esp + 0x88], ebp
jb 0x40b560
mov eax, dword [esp + 0x74]
push eax
call fcn.0045a870
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, dword [edi + 8]
jb 0x40b56e
call fcn.00478a25
mov ecx, dword [esi + 4]
add ecx, 0x1c
push ecx
lea esi, [esp + 0x1c]
call fcn.00401650
mov edi, 7
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov edx, esi
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x120], 0xc
call fcn.00431350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0x124], 0xd
call fcn.00401b70
mov byte [esp + 0x11c], 0xc
cmp dword [esp + 0x6c], ebp
jb 0x40b5e2
mov eax, dword [esp + 0x58]
push eax
call fcn.0045a870
add esp, 4
push 0xd
push str.SETDIFF_FOUND
lea esi, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.00401c20
mov byte [esp + 0x11c], 0xe
push 2
push 0x4a947c
lea esi, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.00401c20
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x90]
mov edx, esi
mov byte [esp + 0x120], 0xf
call fcn.004323e0
add esp, 4
cmp dword [esp + 0x88], ebp
jb 0x40b65e
mov edx, dword [esp + 0x74]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x6c], ebp
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40b684
mov eax, dword [esp + 0x58]
push eax
call fcn.0045a870
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
cmp edx, dword [ecx + 8]
jb 0x40b696
call fcn.00478a25
add dword [esp + 0x38], ebp
cmp dword [esp + 0xa4], ebp
jb 0x40b6b3
mov eax, dword [esp + 0x90]
push eax
call fcn.0045a870
add esp, 4
mov byte [esp + 0x11c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
je 0x40b6f6
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00402640
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.0045a870
add esp, 4
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jmp 0x40b4d3
lea ecx, [esp + 0xa8]
call fcn.00401620
mov eax, 1
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00478599
add esp, 0x10c
ret 0xc