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

Disassembly:
push 0xffffffffffffffff
push 0x413d5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x41b5c0]
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x90], eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x20]
push eax
push 0x7c
push ecx
mov dword [esp + 0xac], ebx
call fcn.0040a130
mov edx, dword [esp + 0xb4]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x30], bl
call dword [0x415158]
call fcn.00409230
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
add esp, 0x1c
cmp esi, eax
mov dword [esp + 0x1c], edx
je 0x40a673
add esi, 4
mov al, byte [esp + 0x10]
test al, al
jne 0x40a673
cmp dword [esi + 0x10], ebx
mov ebp, dword [0x415214]
ja 0x40a2fe
lea ecx, [esi - 4]
call ebp
cmp dword [esi + 0x14], 0x10
jb 0x40a308
mov eax, dword [esi]
jmp 0x40a30a
mov eax, esi
cmp byte [eax], 0x7b
jne 0x40a41b
mov eax, dword [esi + 0x10]
lea edi, [eax - 1]
cmp eax, edi
ja 0x40a322
lea ecx, [esi - 4]
call ebp
cmp dword [esi + 0x14], 0x10
jb 0x40a32c
mov eax, dword [esi]
jmp 0x40a32e
mov eax, esi
cmp byte [eax + edi], 0x7d
jne 0x40a41b
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esi + 0x10]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x48]
push eax
lea ecx, [esi - 4]
mov byte [esp + 0xac], 1
call dword [0x415208]
lea ecx, [esp + 0x30]
push ecx
push 0x2c
push eax
mov byte [esp + 0xac], 2
call fcn.0040a130
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 1
call dword [0x41515c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
cmp ebx, ebp
mov edi, ebx
je 0x40a3da
jmp 0x40a3a0
mov al, byte [esp + 0x10]
test al, al
jne 0x40a3da
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call dword [0x415158]
call fcn.00409230
mov ecx, dword [esp + 0x34]
add esp, 0x1c
cmp ecx, eax
jne 0x40a3d3
cmp dword [esp + 0x1c], edx
jne 0x40a3d3
mov byte [esp + 0x10], 1
add edi, 0x1c
cmp edi, ebp
jne 0x40a3a0
xor eax, eax
cmp ebx, eax
mov byte [esp + 0xa0], 0
je 0x40a40a
cmp ebx, ebp
mov edi, ebx
je 0x40a3ff
mov edi, edi
mov ecx, edi
call dword [0x41515c]
add edi, 0x1c
cmp edi, ebp
jne 0x40a3f0
push ebx
call fcn.00412910
add esp, 4
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x40a65f
cmp dword [esi + 0x10], ebx
ja 0x40a425
lea ecx, [esi - 4]
call ebp
cmp dword [esi + 0x14], 0x10
jb 0x40a42f
mov eax, dword [esi]
jmp 0x40a431
mov eax, esi
cmp byte [eax], 0x28
je 0x40a455
cmp dword [esi + 0x10], ebx
ja 0x40a440
lea ecx, [esi - 4]
call ebp
cmp dword [esi + 0x14], 0x10
jb 0x40a44a
mov eax, dword [esi]
jmp 0x40a44c
mov eax, esi
cmp byte [eax], 0x5b
jne 0x40a673
push 1
push ebx
lea ebp, [esi - 4]
push 0x415930
mov ecx, ebp
call dword [0x41520c]
mov edx, dword [0x4151a4]
mov edi, eax
cmp edi, dword [edx]
je 0x40a673
cmp dword [esi + 0x10], ebx
ja 0x40a485
mov ecx, ebp
call dword [0x415214]
cmp dword [esi + 0x14], 0x10
jb 0x40a48f
mov eax, dword [esi]
jmp 0x40a491
mov eax, esi
mov bl, byte [eax]
mov eax, dword [esi + 0x10]
lea ecx, [eax - 1]
cmp eax, ecx
mov dword [esp + 0x14], ecx
ja 0x40a4ad
mov ecx, ebp
call dword [0x415214]
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x14], 0x10
jb 0x40a4b7
mov eax, dword [esi]
jmp 0x40a4b9
mov eax, esi
mov al, byte [eax + ecx]
lea ecx, [edi - 1]
push ecx
push 1
lea edx, [esp + 0x80]
push edx
mov ecx, ebp
mov byte [esp + 0x1f], al
call dword [0x415208]
mov eax, dword [esi + 0x10]
sub eax, edi
sub eax, 2
push eax
inc edi
push edi
lea eax, [esp + 0x64]
push eax
mov ecx, ebp
mov byte [esp + 0xac], 3
call dword [0x415208]
cmp bl, 0x28
mov byte [esp + 0xa0], 4
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
je 0x40a512
cmp bl, 0x5b
jne 0x40a529
lea ecx, [esp + 0x78]
push 0x415565
push ecx
call dword [0x415210]
add esp, 8
test al, al
jne 0x40a593
cmp bl, 0x28
jne 0x40a55f
sub esp, 0x1c
lea edx, [esp + 0x94]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [0x415158]
call fcn.00409230
mov ecx, dword [esp + 0x38]
add esp, 0x1c
cmp ecx, edx
ja 0x40a593
jb 0x40a598
cmp dword [esp + 0x18], eax
ja 0x40a593
jmp 0x40a598
cmp bl, 0x5b
jne 0x40a598
sub esp, 0x1c
lea eax, [esp + 0x94]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [0x415158]
call fcn.00409230
mov ecx, dword [esp + 0x38]
add esp, 0x1c
cmp ecx, edx
jb 0x40a598
ja 0x40a593
cmp dword [esp + 0x18], eax
jb 0x40a598
mov byte [esp + 0x12], 1
mov bl, byte [esp + 0x13]
cmp bl, 0x29
je 0x40a5a6
cmp bl, 0x5d
jne 0x40a5bd
lea ecx, [esp + 0x5c]
push 0x415565
push ecx
call dword [0x415210]
add esp, 8
test al, al
jne 0x40a621
cmp bl, 0x29
jne 0x40a5f0
sub esp, 0x1c
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [0x415158]
call fcn.00409230
mov ecx, dword [esp + 0x38]
add esp, 0x1c
cmp ecx, edx
jb 0x40a621
ja 0x40a626
cmp dword [esp + 0x18], eax
jb 0x40a621
jmp 0x40a626
cmp bl, 0x5d
jne 0x40a626
sub esp, 0x1c
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [0x415158]
call fcn.00409230
mov ecx, dword [esp + 0x38]
add esp, 0x1c
cmp ecx, edx
ja 0x40a626
jb 0x40a621
cmp dword [esp + 0x18], eax
ja 0x40a626
mov byte [esp + 0x11], 1
mov al, byte [esp + 0x12]
test al, al
je 0x40a63b
mov al, byte [esp + 0x11]
test al, al
je 0x40a63b
mov byte [esp + 0x10], 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 3
call dword [0x41515c]
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 0
call dword [0x41515c]
mov eax, dword [esp + 0x28]
add esi, 0x1c
lea ecx, [esi - 4]
xor ebx, ebx
cmp ecx, eax
jne 0x40a2e2
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov dword [esp + 0xa0], 0xffffffff
je 0x40a6a8
mov ebx, dword [esp + 0x28]
cmp edi, ebx
mov esi, edi
je 0x40a69f
mov ecx, esi
call dword [0x41515c]
add esi, 0x1c
cmp esi, ebx
jne 0x40a690
push edi
call fcn.00412910
add esp, 4
mov ecx, dword [esp + 0x98]
mov al, byte [esp + 0x10]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
call fcn.00412959
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret