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

Disassembly:
push 0xffffffffffffffff
push 0x4aa29e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], edi
call fcn.00434680
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x20]
lea edx, [esp + 0x44]
xor ebx, ebx
push edx
mov dword [esp + 0x29c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [eax + 0x30]
mov esi, dword [edi + 4]
mov eax, dword [0x4c1840]
add edi, 0xc0
cmp eax, ebx
mov dword [esp + 0x40], edi
jne 0x4161e1
mov dword [0x4c1840], ebx
lea eax, [edi + 0x1c]
push eax
push 0x4c1810
push 0x4cf760
call fcn.00416f80
push ebx
push eax
push 0x82
push ebx
push 0x50000000
lea ecx, [esp + 0x58]
push 0x4c17e8
push ecx
push esi
mov ecx, edi
call fcn.00417c70
cmp eax, ebx
jne 0x416232
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.004346a0
xor eax, eax
jmp 0x416c75
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
sub esi, edx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ebx
call fcn.004170e0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
add eax, 0x14
mov dword [esp + 0x3c], edx
mov ecx, 0x4cf6f0
mov dword [esp + 0x3c], eax
call fcn.00401310
mov ecx, eax
mov dword [esp + 0x7c], eax
call fcn.00418000
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x5c], ebp
jg 0x4162af
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.004346a0
xor eax, eax
jmp 0x416c75
mov eax, dword [0x4c0080]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
cmp ebp, ebx
mov byte [esp + 0x298], 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], ebx
jle 0x4165cc
mov bl, 3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
push eax
call fcn.00418420
mov edi, eax
test edi, edi
je 0x4165bb
mov ecx, edi
call fcn.004104f0
test eax, eax
mov ecx, edi
jne 0x41654f
call fcn.00410500
add eax, 8
mov eax, dword [eax]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404840
mov edx, dword [0x4c0080]
mov dword [esp + 0x10], edx
mov eax, dword [0x4cf6e8]
lea ecx, [esp + 0x90]
push 0x100
push ecx
mov eax, dword [eax + 8]
push 0xbd
push eax
mov byte [esp + 0x2a8], bl
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x416355
mov word [esp + 0x90], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416374
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
call fcn.00403cc0
jmp 0x4163c2
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x4163b7
push esi
push eax
push 0xbd
call fcn.00404b30
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4163b7
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00404560
test eax, eax
jne 0x41638b
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404620
mov ecx, edi
call fcn.00411c20
dec eax
je 0x41646d
dec eax
je 0x4163ea
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00404840
jmp 0x4164eb
mov ecx, 0x4c17b4
test ecx, ecx
jne 0x4163f7
xor eax, eax
jmp 0x416402
push 0x4c17b4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c17b4
push eax
lea ecx, [esp + 0x1c]
call fcn.00404840
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.00410ee0
mov eax, dword [eax]
push 0
push eax
push 0x16
mov ecx, 0x4cf6f0
mov byte [esp + 0x2a4], 5
call fcn.00403460
mov eax, dword [esp + 0x64]
mov edx, dword [0x4c0084]
mov byte [esp + 0x298], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4164eb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4164eb
mov edx, dword [esp + 0x64]
lea eax, [edx - 0xc]
jmp 0x4164e2
mov eax, 0x4c1798
test eax, eax
je 0x416481
push 0x4c1798
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c1798
push eax
lea ecx, [esp + 0x1c]
call fcn.00404840
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00410ee0
mov eax, dword [eax]
push 0
push eax
push 0x15
mov ecx, 0x4cf6f0
mov byte [esp + 0x2a4], 4
call fcn.00403460
mov eax, dword [esp + 0x68]
mov ecx, dword [0x4c0084]
mov byte [esp + 0x298], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4164eb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4164eb
mov eax, dword [esp + 0x68]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov ecx, 0x4c1790
test ecx, ecx
jne 0x4164f8
xor eax, eax
jmp 0x416503
push 0x4c1790
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c1790
push eax
lea ecx, [esp + 0x1c]
call fcn.00404840
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c0084]
mov byte [esp + 0x298], 2
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4165bb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4165bb
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
jmp 0x4165bb
call fcn.00410520
test eax, eax
je 0x4165bb
mov ecx, edi
mov dword [esp + 0x2c], 1
call fcn.00410500
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esi + 8]
add esi, 8
cmp ecx, eax
je 0x4165bb
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41658b
mov edx, dword [0x4c0084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x416592
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4165a2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404780
jmp 0x4165bb
lea ecx, [esp + 0x18]
call fcn.00404ac0
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x60]
inc eax
cmp eax, ebp
mov dword [esp + 0x60], eax
jl 0x4162d6
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edx - 8]
test eax, eax
je 0x416747
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0xbe
mov dword [eax + 0x7c], 0xbf
call fcn.00404b30
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x41663c
lea eax, [esp + 0x90]
test eax, eax
je 0x416628
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x20]
push edx
push eax
call fcn.00404780
jmp 0x41668a
push 0x1ff
lea ecx, [esp + 0x24]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x41667f
push esi
push eax
push 0xbe
call fcn.00404b30
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x41667f
add esi, 0x100
lea ecx, [esp + 0x20]
lea edx, [esi - 1]
push edx
call fcn.00404560
test eax, eax
jne 0x416653
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00404620
mov esi, dword [esp + 0x40]
push 1
push 1
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00423d50
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
sub eax, edx
lea edx, [esp + 0x30]
push eax
push 0
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
add eax, 0x14
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], edx
cmp eax, ecx
je 0x416732
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x416700
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x416707
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x416717
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00404780
jmp 0x416732
lea ecx, [esp + 0x20]
call fcn.00404ac0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
push 1
lea eax, [esp + 0x74]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
jmp 0x4167fd
lea edx, [esp + 0x90]
push 0x100
push edx
push 0x9c
call fcn.00404b30
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x41679b
lea edx, [esp + 0x90]
test edx, edx
jne 0x416779
xor eax, eax
jmp 0x416787
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x90]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00404780
jmp 0x4167e9
push 0x1ff
lea ecx, [esp + 0x24]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x4167de
push esi
push eax
push 0x9c
call fcn.00404b30
mov edx, esi
sub edx, eax
cmp edx, 1
jg 0x4167de
add esi, 0x100
lea ecx, [esp + 0x20]
lea eax, [esi - 1]
push eax
call fcn.00404560
test eax, eax
jne 0x4167b2
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00404620
mov esi, dword [esp + 0x40]
push 1
push 1
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.00423d50
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4169b3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
call edi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov edx, dword [0x4c0080]
add eax, 0x14
add ecx, 0x14
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], edx
lea eax, [esp + 0x90]
push 0x100
push eax
push 0x9d
mov byte [esp + 0x2a4], 6
call fcn.00404b30
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4168b7
lea edx, [esp + 0x90]
test edx, edx
jne 0x416895
xor eax, eax
jmp 0x4168a3
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x90]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404780
jmp 0x416909
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x4168fa
push esi
push eax
push 0x9d
call fcn.00404b30
mov edx, esi
sub edx, eax
cmp edx, 1
jg 0x4168fa
add esi, 0x100
lea ecx, [esp + 0x10]
lea eax, [esi - 1]
push eax
call fcn.00404560
test eax, eax
jne 0x4168ce
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404620
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404840
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x41696d
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41693b
mov edx, dword [0x4c0084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x416942
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x416952
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00404780
jmp 0x41696d
lea ecx, [esp + 0x20]
call fcn.00404ac0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
push 1
lea eax, [esp + 0x74]
push 0x30
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00423d50
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c0084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4169b3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4169b3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
add eax, 0x50
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
add eax, 0x14
mov dword [esp + 0x8c], edx
add ecx, 0xa
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], ecx
add ecx, 0xc8
test eax, eax
mov dword [esp + 0x88], ecx
je 0x416aed
mov eax, dword [0x4c0080]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0x9e
mov byte [esp + 0x2a4], 7
call fcn.00404b30
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416a56
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
call fcn.00403cc0
jmp 0x416aa4
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00404560
test eax, eax
je 0x416a99
push esi
push eax
push 0x9e
call fcn.00404b30
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x416a99
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00404560
test eax, eax
jne 0x416a6d
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404620
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x60]
push 0x7e
call fcn.00416c90
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c0084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x416aed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416aed
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [0x4c0080]
xor ebp, ebp
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x5c]
xor edi, edi
test eax, eax
mov byte [esp + 0x298], 8
jle 0x416c04
mov bl, 9
mov ecx, dword [esp + 0x7c]
push edi
call fcn.00418420
mov esi, eax
test esi, esi
je 0x416bf7
mov ecx, esi
call fcn.004104f0
test eax, eax
je 0x416bf7
push 0x14
lea edx, [esp + 0x84]
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, esi
call fcn.00410500
mov eax, dword [eax + 8]
lea ecx, [esp + 0x58]
push eax
push 0x9f
push ecx
call fcn.00405a60
add esp, 0xc
mov ecx, esi
call fcn.00410690
test eax, eax
je 0x416b9c
mov ecx, esi
inc ebp
call fcn.00410500
mov edx, dword [eax + 0x94]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x84]
push eax
lea edx, [edi + 0x2968]
push ecx
mov ecx, dword [esp + 0x60]
push edx
call fcn.00416c90
jmp 0x416bf7
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00410ee0
mov eax, dword [eax]
push 0
push eax
push 0x26
mov ecx, 0x4cf6f0
mov byte [esp + 0x2a4], bl
call fcn.00403460
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4c0084]
mov byte [esp + 0x298], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416bf7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416bf7
mov edx, dword [esp + 0x2c]
lea eax, [edx - 0xc]
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x5c]
inc edi
cmp edi, eax
jl 0x416b11
mov eax, dword [esp + 0x5c]
push 0
cmp ebp, eax
push 0
jne 0x416c14
push 0x10
jmp 0x416c16
push 0x11
mov ecx, 0x4cf6f0
call fcn.00403460
mov ecx, dword [esp + 0x40]
call fcn.004233f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x298], 2
call fcn.004046f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 1
call fcn.004046f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 0
call fcn.004046f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.004346a0
mov eax, 1
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret