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

Disassembly:
push 0xffffffffffffffff
push 0x5a2f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x134], ebp
mov esi, dword [eax + 0x14]
mov ebx, 8
cmp dword [eax + 0x18], ebx
mov byte [esp + 0x17], 0
jb 0x40a9af
mov eax, dword [eax + 4]
jmp 0x40a9b2
add eax, 4
push esi
push eax
lea eax, [esp + 0x148]
call fcn.0040b8b0
cmp eax, 0xffffffff
jne 0x40a9e5
cmp dword [esp + 0x158], ebx
jb 0x40a9de
mov ecx, dword [esp + 0x144]
push ecx
call fcn.00578327
add esp, 4
xor al, al
jmp 0x40b090
push 0xffffffffffffffff
lea edx, [esp + 0x144]
lea ecx, [esi + eax]
push edx
lea esi, [esp + 0xbc]
call fcn.0040b390
mov byte [esp + 0x134], 1
cmp dword [esp + 0xc8], ebp
je 0x40b040
push ebp
push edi
or eax, 0xffffffff
call fcn.0040bbd0
cmp dword [edi + 0x18], ebx
mov eax, dword [edi + 0x14]
jb 0x40aa2a
mov edi, dword [edi + 4]
jmp 0x40aa2d
add edi, 4
push eax
push edi
lea eax, [esp + 0xbc]
call fcn.0040b8b0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40b040
mov dword [esp + 0x44], 0x3d
mov dword [esp + 0x40], 0x3b
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xb8]
push ecx
xor ecx, ecx
lea esi, [esp + 0x110]
call fcn.0040b390
lea edx, [esp + 0x44]
push edx
mov ebx, 1
mov eax, esi
mov byte [esp + 0x138], 2
call fcn.0040b7e0
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x40af40
mov ecx, esi
push eax
push ecx
xor ecx, ecx
lea esi, [esp + 0xa0]
call fcn.0040b390
push 1
mov bl, 3
mov byte [esp + 0x138], bl
xor ebp, ebp
push 0x5bd000
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
call fcn.0040bce0
mov edx, esi
push edx
lea eax, [esp + 0x9c]
lea edi, [esp + 0x4c]
mov byte [esp + 0x138], 4
call fcn.0040a830
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xa0]
mov byte [esp + 0x13c], 5
call fcn.0040b6f0
cmp dword [esp + 0x60], 8
jb 0x40ab1d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00578327
add esp, 4
mov byte [esp + 0x134], bl
cmp dword [esp + 0x38], 8
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x40ab49
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00578327
add esp, 4
mov ecx, dword [esp + 0xb0]
cmp ecx, 8
mov edx, dword [esp + 0x9c]
jb 0x40acca
cmp edx, ebp
mov esi, edx
je 0x40ab94
cmp ecx, 8
mov eax, edx
jae 0x40ab74
lea eax, [esp + 0x9c]
cmp eax, esi
ja 0x40ab94
cmp ecx, 8
mov eax, edx
jae 0x40ab86
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0xac]
lea eax, [eax + edi*2]
cmp esi, eax
jbe 0x40aba7
call fcn.00578ff3
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
mov edi, esi
lea esp, [esp]
cmp ecx, 8
mov eax, edx
jae 0x40abbe
lea eax, [esp + 0x9c]
mov ebx, dword [esp + 0xac]
lea esi, [eax + ebx*2]
cmp esi, ebp
je 0x40abf3
cmp ecx, 8
mov eax, edx
jae 0x40abda
lea eax, [esp + 0x9c]
cmp eax, esi
ja 0x40abf3
cmp ecx, 8
mov eax, edx
jae 0x40abec
lea eax, [esp + 0x9c]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x40ac06
call fcn.00578ff3
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
cmp edi, esi
je 0x40acd6
lea eax, [esp + 0x98]
cmp eax, 0xfffffffe
je 0x40ac6a
cmp ecx, 8
mov eax, edx
jae 0x40ac28
lea eax, [esp + 0x9c]
mov esi, dword [esp + 0xac]
lea eax, [eax + esi*2]
cmp edi, eax
jb 0x40ac49
call fcn.00578ff3
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
cmp ecx, 8
mov eax, edx
jae 0x40ac57
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xac]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x40ac6a
call fcn.00578ff3
movzx eax, word [edi]
push eax
call fcn.0057a55c
lea ecx, [esp + 0x9c]
add esp, 4
mov word [edi], ax
mov edx, dword [esp + 0x9c]
cmp ecx, 0xfffffffe
mov ecx, dword [esp + 0xb0]
je 0x40acc2
cmp ecx, 8
mov eax, edx
jae 0x40aca1
lea eax, [esp + 0x9c]
mov esi, dword [esp + 0xac]
lea eax, [eax + esi*2]
cmp edi, eax
jb 0x40acc2
call fcn.00578ff3
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
add edi, 2
jmp 0x40abb0
lea esi, [esp + 0x9c]
jmp 0x40ab66
cmp dword [esp + 0xac], ebp
je 0x40af2a
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x3c]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x40add2
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xd8]
push ecx
mov byte [esp + 0x140], 6
call fcn.0040b3c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x80]
push edx
add ecx, 4
push ecx
mov ebx, eax
mov byte [esp + 0x13c], 7
call fcn.0040b110
mov edi, 8
cmp dword [esp + 0x104], edi
jb 0x40ad69
mov edx, dword [esp + 0xf0]
push edx
call fcn.00578327
add esp, 4
xor esi, esi
cmp dword [esp + 0xe8], edi
mov ebx, 7
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], esi
mov word [esp + 0xf0], si
jb 0x40ad9f
mov eax, dword [esp + 0xd4]
push eax
call fcn.00578327
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], esi
mov word [esp + 0xd4], si
jb 0x40adc8
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00578327
add esp, 4
mov byte [esp + 0x17], 1
jmp 0x40af1c
push 0xffffffffffffffff
lea edx, [esp + 0x10c]
lea ecx, [eax + 1]
push edx
lea esi, [esp + 0xd8]
call fcn.0040b390
mov byte [esp + 0x134], 8
push 1
mov ebx, 7
push 0x5bd000
lea esi, [esp + 0x28]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
call fcn.0040bce0
mov eax, esi
push eax
lea eax, [esp + 0xd4]
lea edi, [esp + 0x4c]
mov byte [esp + 0x138], 9
call fcn.0040a830
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xd8]
mov byte [esp + 0x13c], 0xa
call fcn.0040b6f0
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x40ae5f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00578327
add esp, 4
mov byte [esp + 0x134], 8
cmp dword [esp + 0x38], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
jb 0x40ae87
mov edx, dword [esp + 0x24]
push edx
call fcn.00578327
add esp, 4
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0040b3c0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
add edx, 4
push edx
mov ebx, eax
mov byte [esp + 0x13c], 0xb
call fcn.0040b110
mov esi, 8
cmp dword [esp + 0x7c], esi
jb 0x40aed8
mov eax, dword [esp + 0x68]
push eax
call fcn.00578327
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], esi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], eax
mov word [esp + 0x68], ax
jb 0x40aefe
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00578327
add esp, 4
cmp dword [esp + 0xe8], esi
mov byte [esp + 0x17], 1
jb 0x40af1c
mov edx, dword [esp + 0xd4]
push edx
call fcn.00578327
add esp, 4
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x9c]
cmp ecx, 8
mov byte [esp + 0x134], 2
jb 0x40af40
push edx
call fcn.00578327
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 1
xor ebx, ebx
lea esi, [esp + 0xb4]
call fcn.0040b2b0
push 1
mov ebp, 7
push 0x5bd000
lea esi, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.0040bce0
mov eax, esi
push eax
lea eax, [esp + 0xb8]
lea edi, [esp + 0xd4]
mov byte [esp + 0x138], 0xc
call fcn.0040a830
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x13c], 0xd
call fcn.0040b6f0
mov esi, 8
cmp dword [esp + 0xe8], esi
jb 0x40afca
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00578327
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
jb 0x40aff3
mov edx, dword [esp + 0x24]
push edx
call fcn.00578327
add esp, 4
lea eax, [esp + 0x40]
push eax
mov ebx, 1
lea eax, [esp + 0xb8]
call fcn.0040b7e0
mov esi, eax
mov byte [esp + 0x134], bl
cmp dword [esp + 0x120], 8
mov dword [esp + 0x18], esi
jb 0x40b030
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.00578327
add esp, 4
cmp esi, 0xffffffff
jne 0x40aa58
mov ebx, 8
xor ebp, ebp
cmp dword [esp + 0xcc], ebx
jb 0x40b059
mov edx, dword [esp + 0xb8]
push edx
call fcn.00578327
add esp, 4
cmp dword [esp + 0x158], ebx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebp
mov word [esp + 0xb8], bp
jb 0x40b08c
mov eax, dword [esp + 0x144]
push eax
call fcn.00578327
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005787fd
add esp, 0x124
ret 0x24