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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
mov eax, dword [0x4961ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x53c], 0xffffffff
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 - 0x41c]
mov dword [ebp - 0x41c], 8
push eax
mov dword [ebp - 0x418], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push dword [ebp + 8]
mov ecx, 0x49970c
push 0
call fcn.0040fe60
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00436710
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
add esp, 0xc
push 0x104
push eax
push dword [0x49977c]
call edi
call fcn.00404600
mov ecx, eax
test ecx, ecx
je 0x413b76
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
call fcn.00404600
mov ecx, eax
test ecx, ecx
je 0x413b76
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x504]
mov dword [ebp - 0x504], eax
lea eax, [ebp - 0x414]
push eax
call fcn.00404390
test al, al
jne 0x412863
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412841
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x504]
call fcn.00405170
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.0040eb10
mov edx, dword [ebp - 0x504]
or ebx, 0xffffffff
add esp, 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412899
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
push 0
push 0x4990e8
mov dword [0x496064], 0
mov dword [0x496068], 0
call fcn.00436710
push 0x208
push 0
push 0x4992f0
call fcn.00436710
mov esi, dword [ebp - 0x418]
add esp, 0x18
test esi, esi
je 0x4128ef
push esi
push 0x104
push 0x4990e8
call fcn.0043c98e
add esp, 0xc
push 0x476a70
push 0x104
push 0x4992f0
call fcn.0043c98e
add esp, 0xc
lea ecx, [ebp - 0x535]
call fcn.00411300
push 0x40ffc0
call fcn.0043c56c
push 0x40ffc0
call fcn.00436ae6
push 0x411450
push 8
call fcn.0043d4a8
push 0x40ffc0
push 4
call fcn.0043d4a8
push 0x411450
push 0xb
call fcn.0043d4a8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00436710
add esp, 0x2c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
push str.Logweb_host.log
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 0x4129b7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ec20
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
call fcn.0040f050
add esp, 4
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412b3e
push 0x46
push 0x476ab0
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], al
call fcn.004058e0
push 3
push 0x476aac
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0x95
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00402eb0
mov edi, eax
push str.url:
push edi
call fcn.00406be0
mov eax, dword [ebp - 0x424]
mov ecx, 0x4745e0
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.00406be0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
mov edx, dword [ebp - 0x508]
cmp edx, 0x10
jb 0x412ae6
mov ecx, dword [ebp - 0x51c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412adc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b80
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
cmp edx, 0x10
jb 0x412b3b
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b80
push edx
push ecx
call fcn.0042ec84
add esp, 8
or ebx, 0xffffffff
mov eax, dword [ebp - 0x424]
cmp dword [eax - 0xc], 0
jne 0x412b7f
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412b61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x413521
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413521
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x504], ebx
call fcn.0041e920
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412cf9
push 0x46
push 0x476b08
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], al
call fcn.004058e0
push 3
push 0x476b04
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0x9b
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00402eb0
mov edi, eax
push str.CreateMutex:
push edi
call fcn.00406be0
add esp, 8
mov ecx, edi
push dword [ebp - 0x504]
call fcn.0040d330
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
mov edx, dword [ebp - 0x508]
cmp edx, 0x10
jb 0x412c9e
mov ecx, dword [ebp - 0x51c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412c94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b85
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
cmp edx, 0x10
jb 0x412cf3
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412ce9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b85
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov ebx, dword [ebp - 0x504]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x412e2d
cmp ebx, 0xb7
jne 0x412e2d
call fcn.0041e920
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412de2
push 0x46
push 0x476b70
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], al
call fcn.004058e0
push 3
push 0x476b6c
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0x9d
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x534]
push eax
call fcn.00402eb0
mov edi, eax
push str.ERROR_ALREADY_EXISTS_break
push edi
call fcn.00406be0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
lea ecx, [ebp - 0x534]
call fcn.00403870
lea ecx, [ebp - 0x51c]
call fcn.00403870
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x424]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x413521
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413521
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push eax
call fcn.0040fb90
mov eax, dword [ebp - 0x420]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x412ec3
mov ecx, dword [ebp - 0x424]
lea ebx, [eax - 0x10]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x412ec3
cmp dword [ebx + 0xc], 0
jl 0x412eae
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x412eae
push edx
call fcn.004044d0
or edi, 0xffffffff
mov dword [ebp - 0x418], eax
add esp, 4
lea ecx, [ebx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412e9d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x418]
add eax, 0x10
mov dword [ebp - 0x420], eax
jmp 0x412ec3
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x420]
call fcn.00405170
mov eax, dword [ebp - 0x420]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x412fe1
push 0
push 0
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x412fb3
push 0x46
push 0x476bf0
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], al
call fcn.004058e0
push 3
push 0x476c38
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0xa9
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x534]
push eax
call fcn.00402eb0
mov edi, eax
push 0x476c3c
push edi
call fcn.00406be0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
lea ecx, [ebp - 0x534]
call fcn.00403870
lea ecx, [ebp - 0x51c]
call fcn.00403870
mov edx, dword [ebp - 0x420]
or ebx, 0xffffffff
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412fd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x412b4d
push 1
call fcn.004307d0
mov ecx, dword [0x499770]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
jne 0x413050
push 0x4960b8
call ebx
cmp dword [0x499770], 0
jne 0x413043
push 0x18
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x413035
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00402dc0
mov ecx, eax
jmp 0x413037
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499770], ecx
push 0x4960b8
call edi
mov ecx, dword [0x499770]
call fcn.004046f0
mov ecx, dword [0x499770]
test ecx, ecx
jne 0x4130ae
push 0x4960b8
call ebx
cmp dword [0x499770], 0
jne 0x4130a1
push 0x18
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x413093
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00402dc0
mov ecx, eax
jmp 0x413095
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499770], ecx
push 0x4960b8
call edi
mov ecx, dword [0x499770]
lea eax, [ebp - 0x424]
push eax
call fcn.0040d2c0
mov ecx, dword [0x499770]
test ecx, ecx
jne 0x413113
push 0x4960b8
call ebx
cmp dword [0x499770], 0
jne 0x413106
push 0x18
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x4130f8
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00402dc0
mov ecx, eax
jmp 0x4130fa
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499770], ecx
push 0x4960b8
call edi
mov ecx, dword [0x499770]
lea eax, [ebp - 0x420]
add ecx, 4
push eax
call fcn.0040d2c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x18
mov edi, eax
mov edx, esp
mov ecx, edi
xor eax, eax
mov dword [edx + 0x10], 0
lea ebx, [ecx + 2]
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413147
sub ecx, ebx
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.004059e0
mov ecx, dword [0x499770]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x4131c6
push 0x4960b8
call ebx
cmp dword [0x499770], 0
jne 0x4131b1
push 0x18
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x4131a3
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00402dc0
mov ecx, eax
jmp 0x4131a5
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499770], ecx
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4960b8
call edi
mov ecx, dword [0x499770]
jmp 0x4131cc
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00404880
mov ecx, dword [0x499764]
test ecx, ecx
jne 0x413225
push 0x496094
call ebx
cmp dword [0x499764], 0
jne 0x413218
push 4
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x41320a
mov ecx, eax
mov dword [eax], 0
call fcn.00433600
mov ecx, eax
jmp 0x41320c
xor ecx, ecx
xchg dword [ebp - 0x504], eax
mov dword [0x499764], ecx
push 0x496094
call edi
mov ecx, dword [0x499764]
push 0x476c58
push dword [0x496074]
push 1
call fcn.00433680
mov eax, dword [0x499084]
xorps xmm0, xmm0
add eax, 0x10
movlpd qword [ebp - 0x440], xmm0
push eax
movlpd qword [ebp - 0x438], xmm0
movlpd qword [ebp - 0x430], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x45c], 0x477538
movups xmmword [ebp - 0x458], xmm0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x418], eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x499740]
mov ebx, eax
xor ecx, ecx
push 4
mov eax, dword [edi + 8]
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push dword [edi]
call fcn.0043cdb3
add esp, 0xc
test eax, eax
je 0x41330f
mov dword [edi], eax
xor ecx, ecx
mov eax, dword [edi + 8]
add eax, 1
push 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [edi + 4]
call fcn.0043cdb3
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x41330f
mov eax, dword [edi + 8]
mov dword [edi + 4], ecx
lea edx, [eax*4]
mov eax, dword [edi]
add eax, edx
je 0x4132fd
mov dword [eax], ebx
mov ecx, dword [edi + 4]
lea eax, [ecx + edx]
test eax, eax
je 0x41330c
lea ecx, [ebp - 0x45c]
mov dword [eax], ecx
inc dword [edi + 8]
push dword [ebp - 0x418]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
call fcn.00411590
push 0xa4
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.00436710
add esp, 0xc
lea ecx, [ebp - 0x500]
call fcn.00413bd0
push dword [ebp - 0x53c]
lea eax, [ebp - 0x4e0]
push eax
push 0x4960d0
push 0x496028
push 0x499778
call fcn.0040cfa0
movzx edi, ax
add esp, 0x14
mov eax, dword [ebp - 0x4ec]
test eax, eax
jne 0x413545
call fcn.00418af4
mov dword [ebp - 0x4ec], eax
test eax, eax
jne 0x413545
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413462
push 0x46
push 0x476d78
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], al
call fcn.004058e0
push 3
push 0x476c54
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0xbd
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x534]
push eax
call fcn.00402eb0
mov edi, eax
push str.MainWnd_creation_failed_
push edi
call fcn.00406be0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
lea ecx, [ebp - 0x534]
call fcn.00403870
lea ecx, [ebp - 0x51c]
call fcn.00403870
lea ecx, [ebp - 0x500]
call fcn.00413d10
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x41348a
push eax
call fcn.00439ce4
add esp, 4
mov dword [ebp - 0x44c], 0
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
test eax, eax
je 0x4134bb
push eax
call fcn.00439ce4
add esp, 4
mov dword [ebp - 0x458], 0
mov edx, dword [ebp - 0x420]
or ebx, 0xffffffff
mov dword [ebp - 0x454], 0
add edx, 0xfffffff0
mov dword [ebp - 0x450], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4134ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41350c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x413521
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
call fcn.0041f130
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x53c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042ef2c
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push eax
call fcn.00418bf6
test di, di
je 0x413393
lea eax, [ebp - 0x500]
mov dword [ebp - 0x4f8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x49602c
mov dword [ebp - 0x4f4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x496044]
mov dword [ebp - 0x4f0], eax
lea eax, [ebp - 0x4f8]
push 0x49602c
mov dword [0x496044], eax
call ebx
mov ecx, dword [0x496084]
mov eax, dword [0x49608c]
mov edx, dword [0x496080]
sub eax, ecx
push 0
push dword [0x49977c]
push 0
push 0
push eax
mov eax, dword [0x496088]
sub eax, edx
push eax
push ecx
push edx
push 0x86000000
push 0
push edi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x413393
push 1
push dword [ebp - 0x4fc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov edx, 1
mov dword [ebp - 0x504], edx
xor edi, edi
nop dword [eax + eax]
test edx, edx
je 0x413634
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x413634
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x45c]
push edi
call dword [eax + 4]
inc edi
test eax, eax
jne 0x413604
mov dword [ebp - 0x504], eax
push 0
push 0
push 0
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edx, dword [ebp - 0x504]
cmp eax, 0xffffffff
je 0x413600
test eax, eax
je 0x4136e0
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x45c]
call dword [eax]
test eax, eax
jne 0x41368d
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x43c]
cmp eax, 0x118
ja 0x4136a8
je 0x4136ca
cmp eax, 0xf
je 0x4136ca
cmp eax, 0xa0
jmp 0x4136ad
cmp eax, 0x200
je 0x4136ca
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edx, ecx
mov dword [ebp - 0x504], edx
cmove eax, edi
mov edi, eax
jmp 0x413600
mov edx, dword [ebp - 0x504]
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, edi
mov edi, eax
jmp 0x413600
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x53c], eax
mov eax, dword [0x499084]
add eax, 0x10
push eax
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [0x499740]
xor edi, edi
mov ecx, eax
mov edx, dword [ebx + 8]
test edx, edx
jle 0x4137d1
mov eax, dword [ebx]
nop
cmp dword [eax], ecx
je 0x413731
inc edi
add eax, 4
cmp edi, edx
jl 0x413720
jmp 0x4137d1
cmp edi, 0xffffffff
je 0x4137d1
test edi, edi
js 0x4137d1
cmp edi, edx
jge 0x4137d1
lea eax, [edx - 1]
cmp edi, eax
je 0x41378d
mov eax, dword [ebx]
sub edx, edi
shl edx, 2
lea ecx, [eax + edi*4]
lea eax, [edx - 4]
push eax
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.004126a0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
sub edx, edi
shl edx, 2
lea ecx, [eax + edi*4]
lea eax, [edx - 4]
push eax
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.004126a0
mov edx, dword [ebx + 8]
add esp, 0x20
push 4
lea eax, [edx - 1]
push eax
push dword [ebx]
call fcn.0043cdb3
mov ecx, eax
add esp, 0xc
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x4137ab
cmp eax, 1
jne 0x4137ad
mov dword [ebx], ecx
push 4
dec eax
push eax
push dword [ebx + 4]
call fcn.0043cdb3
mov ecx, eax
add esp, 0xc
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x4137ca
cmp eax, 1
jne 0x4137cd
mov dword [ebx + 4], ecx
dec eax
mov dword [ebx + 8], eax
push dword [ebp - 0x418]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041e920
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413938
push 0x46
push str.d:jenkins.jenkinsworkspacelib_commonweb_hostweb_host_srcmain.cc
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], al
call fcn.004058e0
push 3
push 0x476e08
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
call fcn.004058e0
call fcn.0041e920
mov ebx, eax
lea ecx, [ebp - 0x5d4]
push 0xc6
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00402eb0
mov edi, eax
push str.wait_quit
push edi
call fcn.00403cf0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5d4]
call fcn.00403e10
mov edx, dword [ebp - 0x508]
cmp edx, 0x10
jb 0x4138dd
mov ecx, dword [ebp - 0x51c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4138d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b8a
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0xf
mov byte [ebp - 0x51c], 0
cmp edx, 0x10
jb 0x413932
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413928
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b8a
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00430bc0
mov ecx, dword [0x499770]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x41399c
push 0x4960b8
call ebx
cmp dword [0x499770], 0
jne 0x41398f
push 0x18
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x413981
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00402dc0
mov ecx, eax
jmp 0x413983
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499770], ecx
push 0x4960b8
call edi
mov ecx, dword [0x499770]
call fcn.004052b0
cmp dword [0x499770], 0
je 0x4139e4
push 0x4960b8
call ebx
mov edi, dword [0x499770]
test edi, edi
je 0x4139d7
mov ecx, edi
call fcn.00403a50
push 0x18
push edi
call fcn.0042ec84
add esp, 8
mov dword [0x499770], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4960b8
call edi
mov ecx, dword [0x499764]
test ecx, ecx
jne 0x413a38
push 0x496094
call ebx
cmp dword [0x499764], 0
jne 0x413a2b
push 4
call fcn.0042ec54
add esp, 4
test eax, eax
je 0x413a1d
mov ecx, eax
mov dword [eax], 0
call fcn.00433600
mov ecx, eax
jmp 0x413a1f
xor ecx, ecx
xchg dword [ebp - 0x418], eax
mov dword [0x499764], ecx
push 0x496094
call edi
mov ecx, dword [0x499764]
call fcn.004336e0
mov ebx, dword [0x499084]
add ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x499744]
test edi, edi
je 0x413a9f
cmp dword [edi + 4], 0
jle 0x413a6d
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [0x499744]
test edi, edi
je 0x413a9f
mov eax, dword [edi]
test eax, eax
je 0x413a86
push eax
call fcn.00439ce4
add esp, 4
mov dword [edi], 0
push 0xc
push edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0042ec84
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov dword [0x499744], 0
call edi
mov edi, dword [0x499740]
test edi, edi
je 0x413afa
mov eax, dword [edi]
test eax, eax
je 0x413ad1
push eax
call fcn.00439ce4
add esp, 4
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x413ae8
push eax
call fcn.00439ce4
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
mov dword [edi + 8], 0
call fcn.0042ec84
add esp, 8
mov ecx, 0x49970c
call fcn.00411800
lea ecx, [ebp - 0x500]
call fcn.00413d10
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x413b2c
push eax
call fcn.00439ce4
add esp, 4
mov dword [ebp - 0x44c], 0
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
test eax, eax
je 0x413b5d
push eax
call fcn.00439ce4
add esp, 4
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
jmp 0x412fb3
push 0x80004005
call fcn.00404370
call fcn.00439bd8
call fcn.00439bd8
call fcn.00439bd8
int3