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

Disassembly:
push 0xffffffffffffffff
push 0x57dba0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5e14a4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e14a4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov al, byte [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x20], al
call fcn.0040bbe0
mov edi, eax
mov dword [esp + 0x60], 0
call fcn.0040ad10
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40a0b0
push 0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0056aa2e
mov eax, dword [edi + 4]
test eax, eax
je 0x40a090
cmp eax, 0xffffffff
jae 0x40a090
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x14]
not esi
call fcn.0056aa56
and esi, edi
je 0x40a0b0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
lea esi, [esp + 0x38]
call fcn.0040a7f0
mov ecx, 1
mov dword [esp + 0x60], ecx
mov al, byte [ebp]
cmp al, 0x2b
je 0x40a0f4
cmp al, 0x2d
je 0x40a0f4
cmp al, 0x30
jne 0x40a0ea
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x40a0e0
cmp al, 0x58
jne 0x40a0ea
mov dword [esp + 0x14], 2
jmp 0x40a0f8
mov dword [esp + 0x14], 0
jmp 0x40a0f8
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, edx
cmp ecx, 0x10
jae 0x40a10b
lea eax, [esp + 0x38]
cmp byte [eax], 0x7f
je 0x40a183
mov eax, edx
cmp ecx, 0x10
jae 0x40a11b
lea eax, [esp + 0x38]
cmp byte [eax], 0
jle 0x40a183
cmp ecx, 0x10
jb 0x40a12b
mov dword [esp + 0x28], edx
jmp 0x40a133
lea eax, [esp + 0x38]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
mov esi, ebx
cmp al, 0x7f
je 0x40a183
test al, al
jle 0x40a183
mov edx, esi
sub edx, dword [esp + 0x14]
movsx eax, al
cmp eax, edx
jae 0x40a183
sub esi, eax
mov eax, ebx
sub eax, esi
inc eax
push eax
lea edi, [esi + ebp]
push edi
push eax
lea ecx, [esi + ebp + 1]
push ecx
call fcn.0054f156
mov eax, dword [esp + 0x38]
add esp, 0x10
mov byte [edi], 0
inc ebx
cmp byte [eax + 1], 0
jle 0x40a17d
inc eax
mov dword [esp + 0x28], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x40a13f
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x24], 0
mov esi, dword [edi + 0x20]
jl 0x40a19e
jg 0x40a196
test esi, esi
je 0x40a19e
cmp esi, ebx
jbe 0x40a19e
sub esi, ebx
jmp 0x40a1a0
xor esi, esi
mov eax, dword [edi + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x40a24d
cmp eax, 0x100
je 0x40a1e7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
mov eax, esi
lea edi, [esp + 0x20]
call fcn.0040a350
mov edx, dword [eax]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x7c], eax
jmp 0x40a247
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, ebp
call fcn.0040a2e0
mov edx, dword [eax]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [eax]
add ebp, ecx
sub ebx, ecx
mov ecx, dword [eax + 4]
push ecx
push edx
mov eax, esi
lea edi, [esp + 0x30]
call fcn.0040a350
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 4]
add esp, 0x1c
mov dword [esp + 0x7c], edx
mov edi, dword [esp + 0x20]
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push ebx
push eax
mov eax, ebp
call fcn.0040a720
mov ecx, dword [eax]
xor edx, edx
mov dword [esp + 0x8c], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], edx
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x7c]
add esp, 0x14
push edx
push eax
mov dword [esp + 0x84], eax
push ecx
mov eax, esi
call fcn.0040a350
add esp, 0xc
cmp dword [esp + 0x4c], 0x10
jb 0x40a2bf
mov eax, dword [esp + 0x38]
push eax
call fcn.00411694
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0054df46
add esp, 0x50
ret