Function at 0x41a970
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 0x41af83
push esi
lea ecx, [esp + 0x24]
call fcn.004acdc0
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.004010c0
push esi
mov ecx, edi
call fcn.00402130
lea ecx, [esp + 0x20]
call fcn.004acdf0
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 0x41a9eb
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 0x41aa10
mov eax, dword [ebx + 0x2c]
push 0
push esi
push 0x416
push eax
call ebp
dec esi
jns 0x41a9ff
mov ecx, dword [esp + 0x188]
push ecx
call fcn.004acd90
mov edi, eax
mov eax, dword [ebx + 0xd8]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x41aa36
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 0x41af10
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x188]
push esi
push eax
call fcn.004ad2c0
mov ebp, eax
add esp, 8
test ebp, ebp
mov edi, ebp
jne 0x41aa6c
mov ebp, dword [ebx + 0xf4]
push ebp
lea ecx, [esp + 0x24]
call fcn.004acdc0
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 [0x4dca8c], 1
je 0x41aaab
mov dword [esi], 0xffffffff
jmp 0x41aab8
push 1
lea ecx, [esp + 0x24]
call fcn.004ada30
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x4d9540]
cmp eax, 0x14
mov dword [esp + 0x10], ecx
jle 0x41ab2a
test ebp, ebp
je 0x41ab2a
push ebp
call fcn.004ad280
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41ab26
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41ab26
mov edx, dword [eax]
lea ecx, [esp + 0x7c]
push ecx
push 1
push ebx
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x41ab26
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.004a9490
push ebx
call fcn.004ad4d0
add esp, 0x114
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41abee
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.004acc20
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, dword [edi]
cmp eax, esi
je 0x41abbf
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41ab77
mov ecx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x41ab82
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x41ac0a
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00401420
test eax, eax
je 0x41abbb
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41abee
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41abee
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4e4754]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
jne 0x41ac25
push 0x4e4754
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
jmp 0x41ac2b
lea ecx, [esp + 0x10]
call fcn.0040e950
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41abbf
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp ebp, edi
je 0x41ac47
cmp word [ebp], di
jne 0x41ac47
mov edx, dword [0x4e4754]
lea ecx, [esp + 0x14]
push edx
call fcn.00420780
jmp 0x41ac5e
mov eax, dword [0x4e4754]
lea edx, [esp + 0x14]
push edx
push 0x4d4eb8
mov ecx, dword [eax]
push edi
push ebp
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x78]
call fcn.00420760
lea ecx, [esp + 0x34]
call fcn.004207a0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
call fcn.00420780
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41ac8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, 0x4da794
test edx, edx
je 0x41ae54
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ebp, eax
cmp ebp, edi
je 0x41ae54
mov eax, 0x4da78c
test eax, eax
jne 0x41acbb
mov dword [esp + 0x14], edi
jmp 0x41acc6
push 0x4da78c
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 0x41ae58
push 0x4da794
push esi
call fcn.004c546f
add esp, 8
test eax, eax
je 0x41ad04
lea esi, [eax + ebp*2]
push 0x4da794
push esi
inc edi
call fcn.004c546f
add esp, 8
test eax, eax
jne 0x41acee
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x41acdc
test edi, edi
jle 0x41ae54
lea ecx, [esp + 0x10]
call fcn.00401380
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 0x41ad4f
cmp dword [esi - 0xc], 1
jle 0x41ad8d
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
call fcn.004012f0
test eax, eax
je 0x41ae50
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.00401350
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x41ae43
push 0x4da794
push esi
call fcn.004c546f
mov edi, eax
add esp, 8
test edi, edi
je 0x41ae28
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.004c5570
mov ecx, esi
mov esi, 0x4da78c
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 0x4da794
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.004c546f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41adb3
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 0x41ad9f
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x41ae58
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 0x41aeb4
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41ae80
mov ecx, dword [0x4d9544]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x41ae87
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x41ae95
mov eax, dword [esi - 8]
push esi
push eax
mov ecx, edi
call fcn.00401630
jmp 0x41aeb0
mov ecx, edi
call fcn.0040e950
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 [0x4d9544]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x41aedf
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41aedf
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004acdf0
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 0x41aa4d
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 0x41af71
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 0x41af32
lea ecx, [esp + 0x34]
call fcn.004207a0
mov esi, dword [esp + 0x188]
jmp 0x41af89
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.004acdc0
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.004010c0
push esi
mov ecx, edi
call fcn.00402130
lea ecx, [esp + 0x20]
call fcn.004acdf0
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.0041cdd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174
ret 4