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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416b8f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16dc
call fcn.00414670
mov eax, dword [0x419448]
xor eax, esp
mov dword [esp + 0x16d8], eax
push ebx
push esi
push edi
mov eax, dword [0x419448]
xor eax, esp
push eax
lea eax, [esp + 0x16f0]
mov dword fs:[0], eax
push 0x58
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x30]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x34], edi
call fcn.0040d2b0
mov eax, dword [edi + 4]
mov dword [esp + 0x38], esi
mov esi, dword [0x4190ec]
add esp, 0xc
mov dword [esp + 0x30], eax
call esi
push eax
push 0x3aaf
lea edi, [esp + 0x2c]
call fcn.00407a99
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x16f8], ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call esi
push eax
push 0x3ac5
lea eax, [esp + 0x8c]
push eax
call fcn.00406ae4
mov byte [esp + 0x16f8], 1
push 0x7c
lea ecx, [esp + 0x88]
call dword [0x419064]
push dword [esp + 0x84]
mov byte [esp + 0x90], 1
call fcn.0040769e
mov edx, dword [esp + 0x84]
xor ecx, ecx
cmp eax, ebx
mov byte [esp + 0x8c], 1
jbe 0x40a496
cmp word [edx + ecx*2], 0x7c
jne 0x40a491
mov word [edx + ecx*2], bx
inc ecx
cmp ecx, eax
jb 0x40a486
mov eax, dword [esp + 0x84]
push 0x1450
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x298]
push ebx
push eax
mov dword [esp + 0x50], ebx
call fcn.0040d2b0
add esp, 0xc
push 0x17
mov esi, 0x41b7d8
push esi
lea eax, [esp + 0x29c]
push 0x41b7c8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0xa28
call dword [0x419094]
mov byte [esp + 0x16f8], 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov edi, eax
call dword [ecx + 0x78]
cmp eax, ebx
jge 0x40a50a
push esi
push edi
push eax
call fcn.00407ae2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov byte [esp + 0x16f8], 5
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x64], 0x8180c
call dword [0x419340]
push dword [esp + 0x30]
test eax, eax
setne byte [esp + 0x1b]
call dword [0x41931c]
test eax, eax
je 0x40a554
push dword [esp + 0x30]
call dword [0x419320]
cmp byte [esp + 0x17], bl
je 0x40a5c3
mov ecx, dword [esp + 0x28]
push dword [esp + 0x48]
add ecx, 0x34
call dword [0x4190c0]
mov byte [esp + 0x16f8], 4
cmp dword [esp + 0x18], ebx
mov esi, dword [0x4190b8]
je 0x40a585
lea ecx, [esp + 0x18]
call esi
mov byte [esp + 0x16f8], 1
lea eax, [esp + 0x20]
push eax
call fcn.00405684
mov byte [esp + 0x16f8], bl
lea eax, [esp + 0x84]
push eax
call fcn.00408436
or dword [esp + 0x16f8], 0xffffffff
cmp dword [esp + 0x1c], ebx
je 0x40a5bf
lea ecx, [esp + 0x1c]
call esi
mov al, 1
jmp 0x40a62e
call dword [0x41933c]
cmp eax, ebx
je 0x40a5d8
push eax
push 0x2e736734
call fcn.0040778c
mov byte [esp + 0x16f8], 4
cmp dword [esp + 0x18], ebx
mov esi, dword [0x4190b8]
je 0x40a5f2
lea ecx, [esp + 0x18]
call esi
mov byte [esp + 0x16f8], 1
lea eax, [esp + 0x20]
push eax
call fcn.00405684
mov byte [esp + 0x16f8], bl
lea eax, [esp + 0x84]
push eax
call fcn.00408436
or dword [esp + 0x16f8], 0xffffffff
cmp dword [esp + 0x1c], ebx
je 0x40a62c
lea ecx, [esp + 0x1c]
call esi
xor al, al
mov ecx, dword [esp + 0x16f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16d8]
xor ecx, esp
call fcn.0040c4c6
mov esp, ebp
pop ebp
ret