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

Disassembly:
push 0xffffffffffffffff
push 0x41c3da
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0xdb8624]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], esi
call dword [0x41fc1c]
push esi
push 0x41feb2
mov byte [esp + 0x74], 1
call dword [0x41f438]
add esp, 8
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call dword [0x41fc20]
test al, al
jne 0x40cf8f
lea ecx, [esp + 0x18]
call dword [0x41fc24]
test al, al
je 0x40cf4f
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x41fc28]
mov edi, dword [0x41fc2c]
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x70], 3
call edi
push eax
lea ecx, [esp + 0x24]
call dword [0x41f204]
lea ecx, [esp + 0x28]
call dword [0x41f508]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 2
call dword [0x41fc30]
mov esi, dword [0x41fc34]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call esi
push 0x422ec8
mov ecx, eax
mov byte [esp + 0x70], 4
call dword [0x41f490]
lea ecx, [esp + 0x30]
mov bl, al
mov byte [esp + 0x6c], 2
call dword [0x41f508]
test bl, bl
je 0x40ccc1
cmp byte [esp + 0x78], 0
je 0x40ccb3
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 0x40]
jmp 0x40ccbb
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 0x44]
call dword [0x41f154]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call esi
or dword [esp + 0x1c], 1
push 0x422eb4
mov ecx, eax
mov byte [esp + 0x70], 5
call dword [0x41f490]
test al, al
je 0x40ccf2
cmp byte [esp + 0x78], 0
jne 0x40ccf2
mov bl, 1
jmp 0x40ccf4
xor bl, bl
test byte [esp + 0x1c], 1
mov dword [esp + 0x6c], 2
je 0x40cd12
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x34]
call dword [0x41f508]
test bl, bl
je 0x40cd36
push 0x41fed0
lea ecx, [esp + 0x24]
call dword [0x41f490]
test al, al
je 0x40cf4f
mov byte [ebp + 0x21], 1
jmp 0x40cf4f
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call esi
push 0x422eac
mov ecx, eax
mov byte [esp + 0x70], 6
call dword [0x41f490]
lea ecx, [esp + 0x38]
mov bl, al
mov byte [esp + 0x6c], 2
call dword [0x41f508]
test bl, bl
je 0x40cdca
push 6
push 0x422ea4
call dword [0x41f438]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x80], 7
call dword [0x41f2f8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call dword [0x41f508]
cmp byte [esp + 0x78], 0
je 0x40cdbf
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], edi
jmp 0x40cf4f
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], edi
jmp 0x40cf4f
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
call esi
mov ebx, dword [esp + 0x1c]
or ebx, 2
push 0x422e94
mov ecx, eax
mov byte [esp + 0x70], 8
mov dword [esp + 0x20], ebx
call dword [0x41f490]
test al, al
je 0x40ce02
cmp byte [esp + 0x78], 0
mov byte [esp + 0x17], 1
je 0x40ce07
mov byte [esp + 0x17], 0
mov dword [esp + 0x6c], 2
test bl, 2
je 0x40ce25
and ebx, 0xfffffffd
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
call dword [0x41f508]
cmp byte [esp + 0x17], 0
lea ecx, [esp + 0x18]
je 0x40ce7a
lea eax, [esp + 0x44]
push eax
call dword [0x41fc28]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
mov byte [esp + 0x70], 9
call edi
push eax
lea ecx, [ebp + 0x5c]
mov byte [esp + 0x70], 0xa
call fcn.0040be00
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 9
call dword [0x41f508]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call dword [0x41fc30]
jmp 0x40cf4f
lea edx, [esp + 0x48]
push edx
call esi
or ebx, 4
push 0x422e8c
mov ecx, eax
mov byte [esp + 0x70], 0xb
mov dword [esp + 0x20], ebx
call dword [0x41f490]
test al, al
je 0x40ceaa
cmp byte [esp + 0x78], 0
mov byte [esp + 0x17], 1
je 0x40ceaf
mov byte [esp + 0x17], 0
mov dword [esp + 0x6c], 2
test bl, 4
je 0x40cecd
and ebx, 0xfffffffb
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], ebx
call dword [0x41f508]
cmp byte [esp + 0x17], 0
je 0x40cf31
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 8]
push 1
call dword [0x41f7f8]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x41fc28]
lea edx, [esp + 0x4c]
push edx
mov ecx, eax
mov byte [esp + 0x70], 0xc
call edi
push eax
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 8]
mov byte [esp + 0x70], 0xd
call dword [0x41f7f4]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0xc
call dword [0x41f508]
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 2
call dword [0x41fc30]
jmp 0x40cf4f
mov ecx, dword [esp + 0x78]
push ecx
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call dword [0x41fc4c]
mov ecx, ebp
call fcn.0040cba0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call dword [0x41fc38]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0xe
call dword [0x41fc3c]
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 2
call dword [0x41fc30]
lea ecx, [esp + 0x18]
call dword [0x41fc20]
test al, al
je 0x40cc11
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call dword [0x41f508]
mov esi, dword [0x41fc30]
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0
call esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8