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

Disassembly:
push 0xffffffffffffffff
push 0x4b0d5e
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.00435920
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 [0x4c9ad8]
add edi, 0xc0
cmp eax, ebx
mov dword [esp + 0x3c], edi
jne 0x416df1
mov dword [0x4c9ad8], ebx
lea eax, [edi + 0x1c]
push eax
push 0x4c9aa8
push 0x4d74d0
call fcn.00417b70
push ebx
push eax
push 0x82
push ebx
push 0x50000000
lea ecx, [esp + 0x58]
push 0x4c9a80
push ecx
push esi
mov ecx, edi
call fcn.00418860
cmp eax, ebx
jne 0x416e42
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.00435940
xor eax, eax
jmp 0x41785d
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.00417cd0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
add eax, 0x14
mov dword [esp + 0x38], edx
mov ecx, 0x4d7450
mov dword [esp + 0x38], eax
call fcn.00401340
mov ecx, eax
mov dword [esp + 0x7c], eax
call fcn.00418bf0
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x5c], ebp
jg 0x416ebf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.00435940
xor eax, eax
jmp 0x41785d
mov eax, dword [0x4c8080]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
cmp ebp, ebx
mov byte [esp + 0x298], 2
mov dword [esp + 0x40], ebx
mov dword [esp + 0x60], ebx
jle 0x4171dc
mov bl, 3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
push eax
call fcn.00419250
mov edi, eax
test edi, edi
je 0x4171cb
mov ecx, edi
call fcn.00411010
test eax, eax
mov ecx, edi
jne 0x41715f
call fcn.00411020
add eax, 8
mov eax, dword [eax]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405b90
mov edx, dword [0x4c8080]
mov dword [esp + 0x10], edx
mov eax, dword [0x4d7448]
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 0x416f65
mov word [esp + 0x90], ax
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x416f84
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
call fcn.00404b70
jmp 0x416fd2
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x416fc7
push esi
push eax
push 0xbd
call fcn.00405e80
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x416fc7
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004058b0
test eax, eax
jne 0x416f9b
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405970
mov ecx, edi
call fcn.00412720
dec eax
je 0x41707d
dec eax
je 0x416ffa
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405b90
jmp 0x4170fb
mov ecx, 0x4c9a4c
test ecx, ecx
jne 0x417007
xor eax, eax
jmp 0x417012
push 0x4c9a4c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c9a4c
push eax
lea ecx, [esp + 0x1c]
call fcn.00405b90
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.004119e0
mov eax, dword [eax]
push 0
push eax
push 0x16
mov ecx, 0x4d7450
mov byte [esp + 0x2a4], 5
call fcn.004032f0
mov eax, dword [esp + 0x64]
mov edx, dword [0x4c8084]
mov byte [esp + 0x298], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4170fb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4170fb
mov edx, dword [esp + 0x64]
lea eax, [edx - 0xc]
jmp 0x4170f2
mov eax, 0x4c9a30
test eax, eax
je 0x417091
push 0x4c9a30
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c9a30
push eax
lea ecx, [esp + 0x1c]
call fcn.00405b90
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.004119e0
mov eax, dword [eax]
push 0
push eax
push 0x15
mov ecx, 0x4d7450
mov byte [esp + 0x2a4], 4
call fcn.004032f0
mov eax, dword [esp + 0x68]
mov ecx, dword [0x4c8084]
mov byte [esp + 0x298], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4170fb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4170fb
mov eax, dword [esp + 0x68]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, 0x4c9a28
test ecx, ecx
jne 0x417108
xor eax, eax
jmp 0x417113
push 0x4c9a28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4c9a28
push eax
lea ecx, [esp + 0x1c]
call fcn.00405b90
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c8084]
mov byte [esp + 0x298], 2
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4171cb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4171cb
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
jmp 0x4171cb
call fcn.00411040
test eax, eax
je 0x4171cb
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00411020
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esi + 8]
add esi, 8
cmp ecx, eax
je 0x4171cb
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41719b
mov edx, dword [0x4c8084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4171a2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4171b2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405ad0
jmp 0x4171cb
lea ecx, [esp + 0x18]
call fcn.00405e10
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 0x416ee6
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edx - 8]
test eax, eax
je 0x417357
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0xbe
mov dword [eax + 0x7c], 0xbf
call fcn.00405e80
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x41724c
lea eax, [esp + 0x90]
test eax, eax
je 0x417238
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.00405ad0
jmp 0x41729a
push 0x1ff
lea ecx, [esp + 0x24]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x41728f
push esi
push eax
push 0xbe
call fcn.00405e80
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x41728f
add esi, 0x100
lea ecx, [esp + 0x20]
lea edx, [esi - 1]
push edx
call fcn.004058b0
test eax, eax
jne 0x417263
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00405970
mov esi, dword [esp + 0x3c]
push 1
push 1
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00424d10
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
lea edx, [esp + 0x2c]
push eax
push 0
push edx
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x38]
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 0x417342
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x417310
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x417317
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x417327
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00405ad0
jmp 0x417342
lea ecx, [esp + 0x20]
call fcn.00405e10
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 0x41740d
lea edx, [esp + 0x90]
push 0x100
push edx
push 0x9c
call fcn.00405e80
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4173ab
lea edx, [esp + 0x90]
test edx, edx
jne 0x417389
xor eax, eax
jmp 0x417397
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.00405ad0
jmp 0x4173f9
push 0x1ff
lea ecx, [esp + 0x24]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x4173ee
push esi
push eax
push 0x9c
call fcn.00405e80
mov edx, esi
sub edx, eax
cmp edx, 1
jg 0x4173ee
add esi, 0x100
lea ecx, [esp + 0x20]
lea eax, [esi - 1]
push eax
call fcn.004058b0
test eax, eax
jne 0x4173c2
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00405970
mov esi, dword [esp + 0x3c]
push 1
push 1
lea ecx, [esp + 0x34]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.00424d10
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4175c3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
sub eax, ecx
lea ecx, [esp + 0x2c]
push eax
push 0
push ecx
call edi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov edx, dword [0x4c8080]
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.00405e80
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x4174c7
lea edx, [esp + 0x90]
test edx, edx
jne 0x4174a5
xor eax, eax
jmp 0x4174b3
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.00405ad0
jmp 0x417519
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x41750a
push esi
push eax
push 0x9d
call fcn.00405e80
mov edx, esi
sub edx, eax
cmp edx, 1
jg 0x41750a
add esi, 0x100
lea ecx, [esp + 0x10]
lea eax, [esi - 1]
push eax
call fcn.004058b0
test eax, eax
jne 0x4174de
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405970
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405b90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x41757d
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x41754b
mov edx, dword [0x4c8084]
add eax, 0xfffffff4
cmp eax, edx
jne 0x417552
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x417562
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00405ad0
jmp 0x41757d
lea ecx, [esp + 0x20]
call fcn.00405e10
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.00424d10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c8084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4175c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4175c3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
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 + 0x40]
mov dword [esp + 0x80], ecx
add ecx, 0xc8
test eax, eax
mov dword [esp + 0x88], ecx
je 0x4176fd
mov eax, dword [0x4c8080]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0x9e
mov byte [esp + 0x2a4], 7
call fcn.00405e80
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x417666
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
call fcn.00404b70
jmp 0x4176b4
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004058b0
test eax, eax
je 0x4176a9
push esi
push eax
push 0x9e
call fcn.00405e80
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4176a9
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004058b0
test eax, eax
jne 0x41767d
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405970
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x60]
push 0x7e
call fcn.00417880
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4c8084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4176fd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4176fd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
mov ecx, dword [0x4c8080]
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 0x4177ec
mov bl, 9
mov ecx, dword [esp + 0x7c]
push edi
call fcn.00419250
mov esi, eax
test esi, esi
je 0x4177df
mov ecx, esi
call fcn.00411010
test eax, eax
je 0x4177df
push 0x14
lea edx, [esp + 0x84]
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, esi
call fcn.00411020
mov eax, dword [eax + 8]
lea ecx, [esp + 0x58]
push eax
push 0x9f
push ecx
call fcn.00406c90
add esp, 0xc
mov ecx, esi
call fcn.004111b0
test eax, eax
je 0x4177df
lea edx, [esp + 0x40]
mov ecx, esi
push edx
call fcn.004119e0
mov eax, dword [eax]
push 0
push eax
push 0x26
mov ecx, 0x4d7450
mov byte [esp + 0x2a4], bl
call fcn.004032f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x298], 8
call fcn.00405a40
mov ecx, esi
inc ebp
call fcn.00411020
mov eax, dword [eax + 0x94]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x5c]
lea eax, [edi + 0x2968]
push edx
push eax
call fcn.00417880
mov eax, dword [esp + 0x5c]
inc edi
cmp edi, eax
jl 0x417721
mov eax, dword [esp + 0x5c]
push 0
cmp ebp, eax
push 0
jne 0x4177fc
push 0x10
jmp 0x4177fe
push 0x11
mov ecx, 0x4d7450
call fcn.004032f0
mov ecx, dword [esp + 0x3c]
call fcn.004243b0
lea ecx, [esp + 0x58]
mov byte [esp + 0x298], 2
call fcn.00405a40
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 1
call fcn.00405a40
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 0
call fcn.00405a40
lea ecx, [esp + 0x1c]
mov dword [esp + 0x298], 0xffffffff
call fcn.00435940
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