Function at 0x410470
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4cf484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x228], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 8
push eax
mov dword [ebp - 0x22c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push dword [ebp + 8]
mov ecx, 0x4d42dc
push 0
call fcn.0040bfe0
push 2
call fcn.00451470
lea eax, [ebp - 0x37c]
push eax
call fcn.004251a0
add esp, 8
mov ecx, eax
push 0xe
push str.logcclean.log
call fcn.00408510
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
cmp dword [edi + 0x14], 8
mov ebx, dword [edi + 0x10]
jb 0x41051c
mov edi, dword [edi]
cmp ebx, 8
jae 0x410532
movups xmm0, xmmword [edi]
mov esi, 7
movups xmmword [ebp - 0x248], xmm0
jmp 0x410568
mov esi, ebx
lea ecx, [ebp - 0x248]
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00408160
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x248], eax
push ecx
push edi
push eax
call fcn.00460630
add esp, 0xc
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
cmp edx, 8
jb 0x4105ba
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411550
push edx
push ecx
call fcn.004542c1
mov esi, dword [ebp - 0x234]
add esp, 8
push 0x4a75e0
push 0x6400000
push 1
cmp esi, 8
lea eax, [ebp - 0x248]
push 0
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0044e1c0
lea ecx, [ebp - 0x361]
call fcn.0040d8f0
push 0
push 0
push 0x4a83b4
call fcn.0040c140
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00461130
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, 2
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x410635
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410699
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410670
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4d3cb8
call fcn.0046467a
add esp, 0x10
push 0
push str.ccclean
push 2
call fcn.0040c210
mov ecx, eax
call fcn.004558f0
test eax, eax
jne 0x410782
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410782
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x348]
push 0x7d
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
mov esi, eax
push str.stat_init_fail
push esi
call fcn.004044e0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.00404600
lea ecx, [ebp - 0x224]
call fcn.00404010
lea ecx, [ebp - 0x360]
call fcn.00404010
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4108e1
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x348]
push 0x80
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
mov esi, eax
push str.cmdline:
push esi
call fcn.004044e0
mov eax, dword [ebp - 0x228]
mov ecx, 0x4a7860
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402bc0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.00404600
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x41088c
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411555
push edx
push ecx
call fcn.004542c1
add esp, 8
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
cmp edx, 0x10
jb 0x4108e1
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4108d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411555
push edx
push ecx
call fcn.004542c1
add esp, 8
mov edi, dword [0x4d3c5c]
xorps xmm0, xmm0
add edi, 0x10
movlpd qword [ebp - 0x264], xmm0
push edi
movlpd qword [ebp - 0x25c], xmm0
movlpd qword [ebp - 0x254], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x280], 0x4a821c
movups xmmword [ebp - 0x27c], xmm0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4d4310]
xor edx, edx
push 4
mov ebx, eax
mov ecx, dword [esi + 8]
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
push dword [esi]
call fcn.00467079
add esp, 0xc
test eax, eax
je 0x4109b3
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [esi + 8]
add eax, 1
push 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 4]
call fcn.00467079
add esp, 0xc
test eax, eax
je 0x4109b3
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4109a4
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x4109b0
lea ecx, [ebp - 0x280]
mov dword [eax], ecx
inc dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov dword [ebp - 0x22c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004255a0
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00461130
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00425640
lea eax, [ebp - 0x20c]
push eax
call fcn.00451130
add esp, 0x20
test eax, eax
jne 0x410ae4
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4113c7
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x87
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
mov esi, eax
push str.parent_sign_check_not_pass
push esi
call fcn.004044e0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404600
lea ecx, [ebp - 0x224]
call fcn.00404010
lea ecx, [ebp - 0x360]
call fcn.00404010
jmp 0x4113c7
push 0x30
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00461130
add esp, 0xc
lea ecx, [ebp - 0x2b0]
call fcn.00432440
mov esi, dword [ebp - 0x228]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.004087a0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00432d10
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x410ba3
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410b99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41155a
push edx
push ecx
call fcn.004542c1
add esp, 8
test bl, bl
je 0x410c4b
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410d31
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x8e
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
push str.not_a_cmdline
jmp 0x410cfd
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040b0e0
add esp, 4
test al, al
je 0x410d41
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410d31
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x93
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
push str.popularize
mov esi, eax
push esi
call fcn.004044e0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404600
lea ecx, [ebp - 0x224]
call fcn.00404010
lea ecx, [ebp - 0x360]
call fcn.00404010
lea ecx, [ebp - 0x2b0]
call fcn.00432540
jmp 0x4113c1
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c2c0
add esp, 4
test al, al
je 0x410f0a
push 0x4a7ce4
push 0x4a7cac
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4113a5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x214], 0
mov ecx, edx
mov dword [ebp - 0x210], 7
xor eax, eax
mov word [ebp - 0x224], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410da0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.004087a0
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x410ead
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], 0xf
mov byte [ebp - 0x37c], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0xf
mov byte [ebp - 0x394], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x2e
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004035f0
mov esi, eax
push str.dispatch_cmdline:
push esi
call fcn.00402bc0
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, 0x4a7860
cmovae ecx, dword [ebp - 0x224]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00402bc0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404600
lea ecx, [ebp - 0x394]
call fcn.00404010
lea ecx, [ebp - 0x37c]
call fcn.00404010
mov eax, dword [ebp - 0x214]
add eax, eax
mov dword [ebp - 0x354], 0
cmp dword [ebp - 0x210], 8
push 0
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push 0x1388
push 1
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x224]
call fcn.00404060
jmp 0x4113a5
push 6
xor eax, eax
mov dword [ebp - 0x214], 0
push str.__scan
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
xor bl, bl
mov word [ebp - 0x224], ax
call fcn.004087a0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00432c70
mov edx, dword [ebp - 0x210]
mov esi, eax
cmp edx, 8
jb 0x410f8f
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410f85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41155f
push edx
push ecx
call fcn.004542c1
add esp, 8
mov ecx, 1
movzx eax, bl
test esi, esi
push 0x88
cmovne eax, ecx
mov byte [ebp - 0x228], al
lea eax, [ebp - 0x338]
push 0
push eax
call fcn.00461130
add esp, 0xc
lea ecx, [ebp - 0x338]
call fcn.00412c20
push dword [ebp - 0x228]
lea ecx, [ebp - 0x338]
call fcn.00418e90
test al, al
jne 0x4110b0
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41139a
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x380], 0xf
mov byte [ebp - 0x394], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 0xf
mov byte [ebp - 0x37c], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0xa3
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x37c]
push eax
call fcn.004035f0
mov esi, eax
push str.main_wnd_init_fail
push esi
call fcn.004044e0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404600
lea ecx, [ebp - 0x37c]
call fcn.00404010
lea ecx, [ebp - 0x394]
call fcn.00404010
jmp 0x41139a
lea eax, [ebp - 0x37c]
push eax
call fcn.00424de0
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4110c9
mov esi, dword [esi]
mov ecx, dword [0x4d4334]
test ecx, ecx
jne 0x411127
push 0x4ce05c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4d4334], 0
jne 0x411116
push 4
call fcn.00454291
add esp, 4
test eax, eax
je 0x411104
mov ecx, eax
mov dword [eax], 0
call fcn.00455870
jmp 0x411106
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4d4334], eax
push 0x4ce05c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4d4334]
push 0
push 0
push 1
push esi
push str.start_exe
call fcn.00455910
mov edx, dword [ebp - 0x368]
cmp edx, 8
jb 0x411178
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41116e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411564
push edx
push ecx
call fcn.004542c1
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x4111bc
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x264]
push eax
call edi
test eax, eax
jne 0x4111bc
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x411190
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x411185
test eax, eax
je 0x411252
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
call dword [eax]
test eax, eax
jne 0x41120b
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x260]
cmp eax, 0x118
ja 0x411226
je 0x411242
cmp eax, 0xf
je 0x411242
cmp eax, 0xa0
jmp 0x41122b
cmp eax, 0x200
je 0x411242
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x411185
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x411185
call fcn.0044e0d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41139a
push 0x50
push str.d:jenkins.jenkinsworkspacepay_groupcclean_sys_disk_cleancclean_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.004086a0
push 3
push 0x4a79e0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004086a0
call fcn.0044e0d0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0xa9
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004035f0
mov esi, eax
push str.end_app_run...
push esi
call fcn.004044e0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404600
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x411345
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41133b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411569
push edx
push ecx
call fcn.004542c1
add esp, 8
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
cmp edx, 0x10
jb 0x41139a
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411390
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411569
push edx
push ecx
call fcn.004542c1
add esp, 8
lea ecx, [ebp - 0x338]
call fcn.00413190
lea ecx, [ebp - 0x2b0]
call fcn.00432540
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4113c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x4d42dc
call fcn.0040d7c0
mov edi, dword [0x4d3c5c]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4d4314]
test esi, esi
je 0x411433
cmp dword [esi + 4], 0
jle 0x411401
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4d4314]
test esi, esi
je 0x411433
mov eax, dword [esi]
test eax, eax
je 0x41141a
push eax
call fcn.00464675
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004542c1
add esp, 8
push edi
mov dword [0x4d4314], 0
call ebx
mov esi, dword [0x4d4310]
test esi, esi
je 0x411488
mov eax, dword [esi]
test eax, eax
je 0x41145f
push eax
call fcn.00464675
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x411476
push eax
call fcn.00464675
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004542c1
add esp, 8
mov ecx, 0x4d42dc
call fcn.0040dbb0
call fcn.00451860
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x270]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4114bd
push eax
call fcn.00464675
add esp, 4
mov dword [ebp - 0x270], 0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
test eax, eax
je 0x4114ee
push eax
call fcn.00464675
add esp, 4
mov dword [ebp - 0x27c], 0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
cmp edx, 8
jb 0x41153e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411534
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41156e
push edx
push ecx
call fcn.004542c1
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00454577
mov esp, ebp
pop ebp
ret 0x10
call fcn.00464599
call fcn.00464599
call fcn.00464599
call fcn.00464599
call fcn.00464599
call fcn.00464599
call fcn.00464599
int3