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

Disassembly:
sub esp, 0x26c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebp
call fcn.0041dc60
mov ebx, dword [esp + 0x284]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
cmp ecx, eax
je 0x416b10
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x416adf
mov edx, dword [0x4881a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x416ae6
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x416af6
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x34]
call fcn.00403710
jmp 0x416b10
lea ecx, [esp + 0x2c]
call fcn.004039a0
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x288]
push 1
mov ecx, esi
push 1
add ebp, 0xa4
push 0
mov edx, dword [ecx]
mov dword [esp + 0x78], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], eax
add eax, 0x12
mov edx, dword [ecx + 8]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x78]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x88], eax
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.00415dc0
mov eax, dword [esi]
mov edi, dword [esi + 8]
sub edi, eax
add eax, 0x20
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
sub edi, 0x34
lea ecx, [eax + 2]
add eax, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
test eax, eax
mov ecx, 0x50000080
je 0x416b99
mov ecx, 0x50000880
test ebp, ebp
je 0x416ba9
mov edx, dword [esp + 0x14]
lea eax, [edx + 0xa8]
jmp 0x416bab
xor eax, eax
push 0x200
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x288]
mov eax, dword [eax]
add ecx, 0x28a0
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [ebx + 0x24]
add edx, 0x20
push ecx
push eax
mov ecx, edx
mov dword [esp + 0x50], edx
call fcn.00420e80
test eax, eax
jne 0x416bf9
lea ecx, [esp + 0x28]
call fcn.0041dc80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0xc
push 1
push eax
mov ecx, ebp
call fcn.004150d0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x416d0e
lea ecx, [esp + 0x4c]
call fcn.0041dc60
mov edx, dword [0x4917e0]
lea ecx, [esp + 0x7c]
push 0x100
push ecx
mov eax, dword [edx + 8]
push 0x97
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x416c3f
mov word [esp + 0x7c], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416c6f
lea eax, [esp + 0x7c]
test eax, eax
je 0x416c5e
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x50]
push edx
push eax
call fcn.00403710
jmp 0x416cbd
push 0x1ff
lea ecx, [esp + 0x54]
mov esi, 0x200
call fcn.004034f0
test eax, eax
je 0x416cb2
push esi
push eax
push 0x97
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x416cb2
add esi, 0x100
lea ecx, [esp + 0x50]
lea edx, [esi - 1]
push edx
call fcn.004034f0
test eax, eax
jne 0x416c86
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
call fcn.004035b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
push 1
lea ecx, [eax + 2]
mov dword [esp + 0x4c], eax
mov esi, ecx
push 1
sub esi, edx
lea edx, [esp + 0x44]
add esi, eax
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x4c], ecx
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x5c], esi
call fcn.00415dc0
lea ecx, [esp + 0x4c]
call fcn.0041dc80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
lea eax, [edi + 2]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
add eax, 0x32
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x68], ecx
mov edi, 0x50000000
je 0x416d4d
mov edi, 0x58000000
mov edx, dword [0x4881a0]
mov eax, dword [0x4917e0]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 8]
push 0x100
push ecx
push 0x94
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x416d7e
mov word [esp + 0x7c], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416dae
lea eax, [esp + 0x7c]
test eax, eax
je 0x416d9d
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00403710
jmp 0x416dfc
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
test eax, eax
je 0x416df1
push esi
push eax
push 0x94
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x416df1
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
test eax, eax
jne 0x416dc5
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
test ebp, ebp
je 0x416e0b
mov eax, dword [esp + 0x14]
add eax, 0xa8
jmp 0x416e0d
xor eax, eax
mov ecx, dword [esp + 0x280]
mov eax, dword [eax]
push 0
add ecx, 0x27d8
push edi
push ecx
lea edx, [esp + 0x68]
lea ecx, [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.00420e50
test eax, eax
jne 0x416e7f
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4881a4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x416e67
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416e67
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004472d3
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0041dc80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0xc
push 1
push eax
mov ecx, ebp
call fcn.004150d0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416eb8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416eb8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0041dc80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x26c
ret 0xc