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

Disassembly:
push 0xffffffffffffffff
push 0x4f840e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp + 4], ebx
lea ecx, [esp + 0x80]
lea eax, [ebp + 8]
push ecx
mov dword [esp + 0x7c], ebx
push eax
mov dword [ebp], 0x51f338
call fcn.0040c550
lea esi, [ebp + 0x30]
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov byte [esp + 0x78], 2
mov dword [ebp + 0x4c], ebx
mov byte [ebp + 0x50], bl
mov byte [ebp + 0x51], bl
cmp dword [edi + 8], 2
jne 0x40b0d0
mov ebp, edi
mov dword [esp + 0x10], ebp
jmp 0x40b0dc
mov dword [esp + 0x10], 0x54c9a0
mov ebp, dword [esp + 0x10]
mov edx, dword [str.name]
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b0f4
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00401eb0
lea edx, [esp + 0x1c]
push edx
mov eax, ebp
mov byte [esp + 0x7c], 3
call fcn.0040ee40
cmp eax, ebx
je 0x40b123
cmp dword [eax + 8], 1
je 0x40b128
mov eax, 0x54ca70
mov edx, dword [eax]
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call dword [edx + 0x18]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x84], 4
call fcn.00401510
mov eax, dword [esp + 0x6c]
mov edi, 0x10
cmp eax, edi
jb 0x40b161
mov edx, dword [esp + 0x58]
push edx
call fcn.004c2c15
add esp, 4
mov byte [esp + 0x78], 2
cmp dword [esp + 0x34], edi
mov esi, 0xf
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
jb 0x40b18b
mov eax, dword [esp + 0x20]
push eax
call fcn.004c2c15
add esp, 4
mov edx, dword [str.auto]
mov eax, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b1b0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.00401eb0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
mov byte [esp + 0x7c], 5
mov esi, dword [ebp + 0x4c]
push edx
lea ecx, [ebp + 0x44]
call fcn.0040cea0
cmp dword [esp + 0x14], esi
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x50]
setne bl
cmp eax, edi
jb 0x40b1ff
mov eax, dword [esp + 0x3c]
push eax
call fcn.004c2c15
add esp, 4
xor eax, eax
test bl, bl
mov edi, 0xf
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
je 0x40b2d0
mov edx, dword [str.auto]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b231
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00401eb0
lea ecx, [esp + 0x1c]
push ecx
mov eax, ebp
mov byte [esp + 0x7c], 6
call fcn.0040ee40
test eax, eax
je 0x40b260
cmp dword [eax + 8], 1
je 0x40b265
mov eax, 0x54ca70
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x40b29a
push str.false
lea esi, [eax + 0x44]
call fcn.004c2fd0
mov edx, dword [esi + 0x14]
add esp, 4
push eax
push str.false
push edx
push 0
mov ecx, esi
call fcn.00410890
test eax, eax
je 0x40b29a
mov eax, 1
jmp 0x40b29c
xor eax, eax
mov ecx, dword [esp + 0x80]
mov byte [ecx + 0x50], al
mov byte [esp + 0x78], 2
cmp dword [esp + 0x34], 0x10
jb 0x40b2bf
mov edx, dword [esp + 0x20]
push edx
call fcn.004c2c15
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x14], ecx
je 0x40b39b
jmp 0x40b2f0
mov ecx, dword [esp + 0x14]
jmp 0x40b2f0
mov eax, dword [ecx + 0x28]
mov esi, dword [eax + 8]
mov edx, 2
cmp esi, edx
jne 0x40b38c
mov ecx, esi
cmp ecx, edx
mov ebx, eax
je 0x40b310
mov ebx, 0x54c9a0
mov esi, dword [0x54c944]
test esi, esi
jne 0x40b325
call fcn.00401250
mov esi, dword [0x54c944]
mov ebp, dword [esi + 0x10]
lea edi, [ebx + 0xc]
push edi
lea eax, [esp + 0x1c]
push eax
add esi, 8
push esi
call fcn.0040c960
cmp dword [esp + 0x18], ebp
je 0x40b351
mov ecx, esi
call fcn.0041d570
push ebx
call dword [eax]
add esp, 4
mov edi, eax
jmp 0x40b353
xor edi, edi
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov eax, dword [0x54c950]
push edi
push eax
mov esi, edi
call fcn.0040acd0
test eax, eax
je 0x40b36d
mov esi, eax
add ebx, 0x28
push ebx
mov ebx, dword [esp + 0x84]
call fcn.004098e0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x4c]
mov dword [esp + 0x14], ecx
jne 0x40b2e3
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax + 0x4c], edx
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4