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

Disassembly:
sub esp, 0x174
push ebx
push ebp
push esi
mov esi, dword [esp + 0x184]
mov ebx, ecx
push edi
test esi, esi
mov dword [esp + 0x1c], ebx
je 0x41f103
push esi
lea ecx, [esp + 0x24]
call fcn.00510710
lea esi, [esp + 0x20]
lea edi, [ebx + 0x54]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
mov ecx, edi
and esi, eax
call fcn.00405300
push esi
mov ecx, edi
call fcn.00406370
lea ecx, [esp + 0x20]
call fcn.00510740
mov eax, dword [ebx + 0x2c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x455
push eax
call ebp
test al, 1
je 0x41eb6b
mov ecx, dword [ebx + 0x2c]
and al, 0xfe
push eax
push 0
push 0x454
push ecx
call ebp
mov edx, dword [ebx + 0x2c]
push 0
push 0
push 0x418
push edx
call ebp
mov esi, eax
dec esi
js 0x41eb90
mov eax, dword [ebx + 0x2c]
push 0
push esi
push 0x416
push eax
call ebp
dec esi
jns 0x41eb7f
mov ecx, dword [esp + 0x188]
push ecx
call fcn.005106e0
mov edi, eax
mov eax, dword [ebx + 0xd8]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x41ebb6
mov edx, dword [eax]
push eax
call dword [edx + 4]
xor esi, esi
inc edi
test edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x5c], edi
jle 0x41f090
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x188]
push esi
push eax
call fcn.00510c10
mov ebp, eax
add esp, 8
test ebp, ebp
mov edi, ebp
jne 0x41ebec
mov ebp, dword [ebx + 0xf4]
push ebp
lea ecx, [esp + 0x24]
call fcn.00510710
mov esi, dword [esp + 0x30]
mov ecx, dword [ebx + 0xe0]
mov eax, dword [esp + 0x18]
add esi, ecx
mov dword [esi + 0x10], eax
add eax, 0x6f
mov byte [esi + 8], 4
mov byte [esi + 9], 0x18
mov dword [esi + 0xc], edi
mov dword [esi + 4], eax
cmp dword [0x54b334], 1
je 0x41ec2b
mov dword [esi], 0xffffffff
jmp 0x41ec38
push 1
lea ecx, [esp + 0x24]
call fcn.005114b0
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x547570]
cmp eax, 0x14
mov dword [esp + 0x10], ecx
jle 0x41ecaa
test ebp, ebp
je 0x41ecaa
push ebp
call fcn.00510bd0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41eca6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41eca6
mov edx, dword [eax]
lea ecx, [esp + 0x7c]
push ecx
push 1
push ebx
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x41eca6
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, 0x42
sub esp, 0x108
lea esi, [esp + 0x18c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00517400
push ebx
call fcn.00510f00
add esp, 0x114
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41ed6e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
lea edx, [esp + 0x28]
and eax, ecx
mov eax, dword [eax]
push eax
push edx
call fcn.005103f0
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, dword [edi]
cmp eax, esi
je 0x41ed3f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41ecf7
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x41ed02
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x41ed8a
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00405660
test eax, eax
je 0x41ed3b
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41ed6e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ed6e
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x555b44]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jne 0x41eda5
push 0x555b44
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
jmp 0x41edab
lea ecx, [esp + 0x10]
call fcn.004124c0
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41ed3f
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp ebp, edi
je 0x41edc7
cmp word [ebp], di
jne 0x41edc7
mov edx, dword [0x555b44]
lea ecx, [esp + 0x14]
push edx
call fcn.00424b80
jmp 0x41edde
mov eax, dword [0x555b44]
lea edx, [esp + 0x14]
push edx
push 0x543354
mov ecx, dword [eax]
push edi
push ebp
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x78]
call fcn.00424b60
lea ecx, [esp + 0x34]
call fcn.0045ffc0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
call fcn.00424b80
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41ee0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, 0x548a4c
test edx, edx
je 0x41efd4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ebp, eax
cmp ebp, edi
je 0x41efd4
mov eax, 0x548a44
test eax, eax
jne 0x41ee3b
mov dword [esp + 0x14], edi
jmp 0x41ee46
push 0x548a44
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x41efd8
push 0x548a4c
push esi
call fcn.0053225f
add esp, 8
test eax, eax
je 0x41ee84
lea esi, [eax + ebp*2]
push 0x548a4c
push esi
inc edi
call fcn.0053225f
add esp, 8
test eax, eax
jne 0x41ee6e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x41ee5c
test edi, edi
jle 0x41efd4
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x38], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x64], ebx
cmp eax, ebx
jl 0x41eecf
cmp dword [esi - 0xc], 1
jle 0x41ef0d
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
call fcn.00405530
test eax, eax
je 0x41efd0
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
shl ecx, 1
mov edx, ecx
mov eax, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405590
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x41efc3
push 0x548a4c
push esi
call fcn.0053225f
mov edi, eax
add esp, 8
test edi, edi
je 0x41efa8
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x38]
sar edx, 1
sub eax, edx
lea ecx, [edi + ebp*2]
sub eax, ebp
lea ebx, [eax + eax]
mov eax, dword [esp + 0x14]
push ebx
push ecx
lea esi, [eax + eax]
lea eax, [esi + edi]
push eax
mov dword [esp + 0x6c], eax
call fcn.00532360
mov ecx, esi
mov esi, 0x548a44
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x548a4c
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x70]
push esi
mov word [ebx + esi], 0
mov ebx, dword [esp + 0x4c]
add ebx, eax
mov dword [esp + 0x4c], ebx
call fcn.0053225f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41ef33
mov ebx, dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x41ef1f
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x41efd8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xe4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
lea edi, [ecx + edx*4]
cmp eax, esi
je 0x41f034
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41f000
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x41f007
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x41f015
mov eax, dword [esi - 8]
push esi
push eax
mov ecx, edi
call fcn.00405870
jmp 0x41f030
mov ecx, edi
call fcn.004124c0
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x41f05f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f05f
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00510740
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edx
mov esi, eax
jl 0x41ebcd
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0xe0]
mov eax, dword [ebx + 0x2c]
push edx
push esi
push 0x444
push eax
call ebp
lea eax, [esi - 1]
test eax, eax
jl 0x41f0f1
lea esi, [eax + 0x6f]
inc eax
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0x2c]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x20
push ecx
push esi
push 0x440
push edx
mov dword [esp + 0x50], 0xa
mov byte [esp + 0x5d], 0x18
call ebp
mov eax, dword [esp + 0x28]
dec esi
dec eax
mov dword [esp + 0x28], eax
jne 0x41f0b2
lea ecx, [esp + 0x34]
call fcn.0045ffc0
mov esi, dword [esp + 0x188]
jmp 0x41f109
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
or eax, 0xffffffff
lea edx, [esp + 0x3c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2c]
push edx
push 1
push 0x444
push eax
mov byte [esp + 0x54], 4
mov byte [esp + 0x55], 0x10
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], 0x463
call ebp
push esi
lea ecx, [esp + 0x24]
call fcn.00510710
lea esi, [esp + 0x20]
lea ecx, [esp + 0x24]
neg esi
sbb esi, esi
lea edi, [ebx + 0xfc]
and esi, ecx
mov ecx, edi
call fcn.00405300
push esi
mov ecx, edi
call fcn.00406370
lea ecx, [esp + 0x20]
call fcn.00510740
mov eax, dword [ebx + 4]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [ebx + 0xf0]
sub ecx, edi
mov edi, dword [esp + 0x68]
sub edx, eax
mov eax, dword [ebx + 0xec]
sub ecx, 4
push 0
sub edx, edi
push ecx
push edx
push 2
push 0
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebx + 0x2c]
push 1
push 0
push 0x454
push ecx
call ebp
mov ecx, ebx
call fcn.00420f50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174
ret 4