Function at 0x4048e0
Capabilities:
Get common file path
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f231
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x454810]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x454810]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], edi
call fcn.00406420
mov dword [esp + 0x168], edi
call fcn.00415286
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x404952
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 1
call fcn.00407d70
mov ebx, dword [esi + 0x138]
mov byte [esp + 0x168], 2
cmp ebx, dword [esi + 0x13c]
jbe 0x40498e
call fcn.004297b7
mov edi, dword [esi + 0x12c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
lea esp, [esp]
mov ebx, dword [esi + 0x13c]
cmp dword [esi + 0x138], ebx
jbe 0x4049b3
call fcn.004297b7
mov eax, dword [esi + 0x12c]
test edi, edi
je 0x4049c1
cmp edi, eax
je 0x4049c6
call fcn.004297b7
cmp dword [esp + 0x18], ebx
je 0x4051d8
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esi + 0x78]
je 0x404a01
inc dword [esp + 0x3c]
test edi, edi
jne 0x4049fd
call fcn.004297b7
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jb 0x4049f6
call fcn.004297b7
add dword [esp + 0x18], 0x18
jmp 0x4049a0
mov eax, dword [edi]
jmp 0x4049e8
test edi, edi
jne 0x404aca
call fcn.004297b7
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x404a1e
call fcn.004297b7
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x14], 0
je 0x404ad8
test edi, edi
jne 0x404ad1
call fcn.004297b7
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x404a49
call fcn.004297b7
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004068f0
test eax, eax
jne 0x404ad8
mov ecx, dword [esi + 0x20]
inc dword [esi + 0x78]
push eax
push 0x1f4
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 1
call fcn.00404730
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404aac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call fcn.00406430
mov eax, 1
jmp 0x405227
mov eax, dword [edi]
jmp 0x404a10
mov eax, dword [edi]
jmp 0x404a3b
xor ebx, ebx
cmp edi, ebx
jne 0x404b0a
call fcn.004297b7
xor edi, edi
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi + 0x10]
jb 0x404af3
call fcn.004297b7
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
dec eax
cmp eax, 7
ja case.default.0x404b03
jmp dword [eax*4 + 0x40524c]
mov edi, dword [edi]
jmp 0x404ae5
push 0x104
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00428200
add esp, 0xc
push 1
lea ecx, [esp + 0x14]
call fcn.00406440
push ebx
push 0x21
lea ecx, [esp + 0x54]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x404b4f
push ebx
push ebx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x1c]
call fcn.00407f50
mov eax, dword [esi + 0x20]
push ebx
push 0x1f4
push 1
push eax
jmp 0x405196
lea ecx, [esp + 0x14]
call fcn.00402620
add eax, 4
mov eax, dword [eax]
push eax
call fcn.00429cc0
mov ecx, dword [esi + 0x20]
add esp, 4
imul eax, eax, 0x3e8
push ebx
push eax
push 1
push ecx
jmp 0x405196
lea ecx, [esp + 0x14]
call fcn.00402620
push ebx
push ebx
push ebx
add eax, 4
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esi + 0x84]
call fcn.00409440
push 0x258
push 0x400
mov ecx, esi
mov dword [esi + 0x74], 1
call fcn.00401c40
push ebx
push 0x2710
jmp 0x405190
lea ecx, [esp + 0x14]
call fcn.00402620
cmp dword [eax + 8], 2
jne 0x404c3b
cmp dword [esi + 0x74], 1
push ebx
lea ecx, [esp + 0x18]
jne 0x404c10
call fcn.00402620
mov ecx, eax
add ecx, 4
call fcn.004029a0
push eax
lea eax, [esi + 0x84]
push eax
lea ecx, [esp + 0x18]
call fcn.00406b40
push ebx
push 0x2710
jmp 0x405190
call fcn.00402620
mov ecx, eax
add ecx, 4
call fcn.004029a0
push eax
lea ecx, [esi + 0xd8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406b40
push ebx
push 0x2710
jmp 0x405190
lea ecx, [esp + 0x24]
call fcn.004047b0
cmp dword [esi + 0x74], 1
jne 0x404c58
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x84]
push ecx
jmp 0x404c64
lea edx, [esp + 0x24]
push edx
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x18]
call fcn.00408ad0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x40518a
lea ecx, [esp + 0x14]
call fcn.00402620
cmp dword [eax + 0xc], edi
jae 0x40518a
lea ecx, [esp + 0x14]
call fcn.00402620
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402620
mov edx, dword [eax + 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402620
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x20]
call fcn.00402620
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00401510
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408370
mov edi, eax
cmp edi, 0xffffffff
je 0x40518a
cmp dword [esi + 0x74], 1
push edi
lea ecx, [esp + 0x28]
jne 0x404d3f
call fcn.00404110
push edi
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00404110
mov eax, dword [eax + 0xc]
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00404110
mov ecx, dword [eax + 8]
push ecx
push edi
lea ecx, [esp + 0x30]
call fcn.00404110
mov edx, dword [eax + 4]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esi + 0x84]
push ecx
jmp 0x404d7a
call fcn.00404110
push edi
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00404110
mov edx, dword [eax + 0xc]
push edx
push edi
lea ecx, [esp + 0x2c]
call fcn.00404110
mov eax, dword [eax + 8]
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00404110
mov ecx, dword [eax + 4]
mov edx, dword [ebx]
push ecx
push edx
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x24]
call fcn.004072d0
mov ecx, dword [esi + 0x20]
push 0
push 0x2710
push 1
push ecx
jmp 0x405196
lea ecx, [esp + 0x24]
call fcn.004047b0
cmp dword [esi + 0x74], 1
lea ecx, [esp + 0x14]
jne 0x404dcb
lea eax, [esp + 0x24]
push eax
call fcn.00402620
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401510
lea ecx, [esi + 0x84]
push ecx
jmp 0x404dec
lea edx, [esp + 0x24]
push edx
call fcn.00402620
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401510
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408e00
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x404f93
lea ecx, [esp + 0x14]
call fcn.00402620
cmp dword [eax + 0xc], edi
jae 0x404f93
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.00402620
cmp dword [eax + 0x10], ebx
je 0x404eb5
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
lea ecx, [esp + 0x14]
add edi, edx
call fcn.00402620
sub edi, dword [eax + 0xc]
lea ecx, [esp + 0x14]
call fcn.00402620
cmp edi, dword [eax + 0x10]
jae 0x404e90
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
lea ecx, [esp + 0x14]
add edi, edx
call fcn.00402620
sub edi, dword [eax + 0xc]
jmp 0x404e9c
lea ecx, [esp + 0x14]
call fcn.00402620
mov edi, dword [eax + 0x10]
push ebx
call fcn.00428ff0
push eax
call fcn.00429c8c
add esp, 8
call fcn.00429c9e
cdq
idiv edi
mov edi, edx
lea ecx, [esp + 0x14]
call fcn.00402620
add edi, dword [eax + 0xc]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x40518a
cmp dword [esi + 0x74], 1
push edi
lea ecx, [esp + 0x28]
jne 0x404f2a
call fcn.00404110
push edi
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00404110
mov eax, dword [eax + 0xc]
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00404110
mov ecx, dword [eax + 8]
push ecx
push edi
lea ecx, [esp + 0x30]
call fcn.00404110
mov edx, dword [eax + 4]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esi + 0x84]
push ecx
jmp 0x404f65
call fcn.00404110
push edi
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00404110
mov edx, dword [eax + 0xc]
push edx
push edi
lea ecx, [esp + 0x2c]
call fcn.00404110
mov eax, dword [eax + 8]
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00404110
mov ecx, dword [eax + 4]
mov edx, dword [ebx]
push ecx
push edx
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x24]
call fcn.004072d0
lea ecx, [esp + 0x14]
call fcn.00402620
cmp dword [eax + 8], 0
push 0
jne 0x404bc1
mov ecx, dword [esi + 0x20]
push 0x1f4
push 1
push ecx
jmp 0x405196
push 0x442f50
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x20]
push ebx
push 0x1f4
push 1
push eax
jmp 0x405196
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00402620
add eax, 4
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x50], esp
mov edi, esp
push eax
call fcn.00401420
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x24]
mov dword [edi], eax
call fcn.00406f50
cmp eax, ebx
je 0x40518a
cmp dword [esi + 0x74], 1
jne 0x40502d
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esi + 0x84]
push eax
jmp 0x405048
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esi + 0xd8]
push edx
lea ecx, [esp + 0x24]
call fcn.004072d0
lea ecx, [esp + 0x14]
call fcn.00402620
push ebx
cmp dword [eax + 8], ebx
jne 0x4050c6
mov eax, dword [esi + 0x20]
push 0x1f4
push 1
push eax
jmp 0x405196
cmp dword [esi + 0x74], 1
lea ecx, [esp + 0x14]
jne 0x40509c
mov eax, dword [esi + 0x20]
push eax
call fcn.00402620
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401510
lea ecx, [esi + 0x84]
push ecx
jmp 0x4050bc
mov edx, dword [esi + 0x20]
push edx
call fcn.00402620
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401510
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406dc0
push ebx
mov ecx, dword [esi + 0x20]
push 0x2710
push 1
push ecx
jmp 0x405196
lea ecx, [esp + 0x14]
call fcn.00402620
add eax, 4
mov eax, dword [eax]
push eax
call fcn.00429cc0
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402620
cmp dword [eax + 0xc], ebx
je 0x405142
lea ecx, [esp + 0x14]
call fcn.00402620
mov edx, dword [eax + 0xc]
cmp edx, dword [esi + 0x7c]
je 0x405142
inc dword [esi + 0x78]
mov eax, dword [esi + 0x20]
push ebx
push 0x1f4
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 1
call fcn.00404730
lea ecx, [esp + 0x20]
call fcn.00401400
jmp 0x404aac
cmp edi, ebx
je 0x405147
dec edi
mov eax, dword [esi + 0x78]
cmp edi, eax
ja 0x405160
mov ecx, dword [esi + 0x20]
push ebx
push 0x1f4
inc eax
push 1
mov dword [esi + 0x78], eax
push ecx
jmp 0x40511d
lea ecx, [esp + 0x14]
call fcn.00402620
cmp dword [eax + 8], 1
jne 0x40517f
push edi
lea ecx, [esp + 0x14]
call fcn.00406720
push ebx
call fcn.0042857a
mov edx, dword [esi + 0x78]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x78], edi
jmp 0x405111
push ebx
push 0x1f4
mov edx, dword [esi + 0x20]
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x78]
mov dword [esi + 0x7c], eax
inc eax
lea ecx, [esp + 0x24]
mov dword [esi + 0x78], eax
mov byte [esp + 0x168], 1
call fcn.00404730
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404aa0
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 1
call fcn.00404730
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x168], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405211
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call fcn.00406430
xor eax, eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0042827a
mov esp, ebp
pop ebp
ret