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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce428
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5254e0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5254e0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x2c]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
call fcn.00401740
push eax
mov dword [esp + 0x9c], 0
call fcn.0040c190
mov esi, eax
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x44], esi
test eax, eax
je 0x40aa18
mov esi, eax
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.004983a4
mov eax, dword [esi + 4]
test eax, eax
je 0x40a9f2
cmp eax, 0xffffffff
jae 0x40a9f2
dec eax
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.004983cc
and esi, dword [esp + 0x28]
je 0x40aa14
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b6c0
mov dword [esp + 0x98], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor ecx, ecx
mov byte [esp + 0x28], al
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ecx
mov byte [esp + 0x50], cl
mov byte [esp + 0x98], 2
mov al, byte [edi]
cmp al, 0x2b
je 0x40aa64
mov dword [esp + 0x2c], ecx
cmp al, 0x2d
jne 0x40aa6c
mov dword [esp + 0x2c], 1
call fcn.004a9bde
mov ecx, dword [eax]
mov dl, byte [ecx]
push ebx
push 0x65
push edi
mov byte [esp + 0x2c], dl
mov word [esp + 0x2d], 0x65
call fcn.004a9a70
add esp, 0xc
mov esi, eax
movsx eax, byte [esp + 0x20]
push ebx
push eax
push edi
call fcn.004a9a70
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40aaaa
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
mov eax, edx
cmp ecx, 0x10
jae 0x40aac0
lea eax, [esp + 0x6c]
cmp byte [eax], 0x7f
je 0x40ac04
mov eax, edx
cmp ecx, 0x10
jae 0x40aad4
lea eax, [esp + 0x6c]
cmp byte [eax], 0
jle 0x40ac04
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.0040a0a0
test esi, esi
jne 0x40ab02
mov ecx, dword [esp + 0x1c]
push 0x30
push ecx
lea ecx, [esp + 0x58]
call fcn.00408150
mov ebx, dword [esp + 0x14]
jmp 0x40ab31
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x40ab1e
mov edx, dword [esp + 0x24]
push 0x30
push edx
lea ecx, [esp + 0x58]
call fcn.00408150
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x1c]
push 0x30
push eax
sub esi, edi
push esi
lea ecx, [esp + 0x5c]
call fcn.0040a1c0
push 0x30
test ebx, ebx
jne 0x40ab47
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x58]
call fcn.00408150
jmp 0x40ab74
mov edx, dword [esp + 0x38]
sub ebx, edi
push edx
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040a1c0
mov ecx, dword [esp + 0x24]
push 0x30
push ecx
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040a1c0
mov dword [esp + 0x34], 0
mov ebx, dword [esp + 0x6c]
mov esi, 0x10
mov dword [esp + 0x24], 0
cmp dword [esp + 0x80], esi
jae 0x40ab92
lea ebx, [esp + 0x6c]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x40aba0
lea eax, [esp + 0x50]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004a9df0
mov edi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x40abe4
test al, al
jle 0x40abe4
mov ecx, edi
sub ecx, dword [esp + 0x2c]
movsx eax, al
cmp eax, ecx
jae 0x40abe4
push 0
sub edi, eax
push 1
push edi
lea ecx, [esp + 0x5c]
call fcn.0040a1c0
cmp byte [ebx + 1], 0
jle 0x40abde
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x40abb6
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x40abf2
lea edi, [esp + 0x50]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov ebx, edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x20]
add eax, ebx
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x24]
cmp dword [edx + 0x24], 0
jl 0x40ac31
jg 0x40ac25
test ecx, ecx
je 0x40ac31
cmp ecx, eax
jbe 0x40ac31
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x40ac39
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x14]
mov esi, dword [ebp + 8]
and eax, 0x1c0
cmp eax, 0x40
je 0x40ace0
cmp eax, 0x100
je 0x40ac7d
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.0040b280
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
jmp 0x40acd5
cmp dword [esp + 0x2c], 0
jbe 0x40acae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 1
push edi
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.0040b210
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc edi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0040b280
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x2c], 0
add esp, 0x18
movsx ecx, byte [esp + 0x20]
push ebx
push ecx
push edi
call fcn.004a9a70
add esp, 0xc
test eax, eax
je 0x40adb4
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
sub eax, edi
push edx
mov edx, dword [ebp + 0x10]
lea ebx, [eax + 1]
lea eax, [ebx - 1]
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0040b5d0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0040b280
mov edx, dword [eax]
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x18
call eax
mov edx, dword [ebp + 0x14]
push 1
mov byte [esp + 0x3c], al
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.0040b280
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x4c]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0040b280
mov ecx, dword [eax]
add edi, ebx
add esp, 0x30
sub dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push edi
call fcn.004a9a70
add esp, 0xc
test eax, eax
je 0x40ae68
mov edx, dword [ebp + 0x14]
sub eax, edi
lea ebx, [eax + 1]
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.0040b5d0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0040b280
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [eax + 4]
add esp, 0x18
test byte [ecx + 0x14], 4
mov dword [ebp + 0x14], edx
mov dword [esp + 0x1c], 0
mov ecx, 0x4e4bac
jne 0x40ae3b
mov ecx, 0x4e4bb0
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.0040b210
mov edx, dword [eax]
add edi, ebx
add esp, 0x18
sub dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push edi
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.0040b5d0
mov edx, dword [eax]
add esp, 0x1c
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0040b280
mov ecx, dword [eax]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x64]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push edi
push esi
mov dword [ebp + 0x14], eax
call fcn.0040b280
mov esi, 0x10
add esp, 0x30
cmp dword [esp + 0x64], esi
jb 0x40aef1
mov eax, dword [esp + 0x50]
push eax
call fcn.004a9dd8
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x80], esi
jb 0x40af17
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004a9dd8
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004a91d2
mov esp, ebp
pop ebp
ret