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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4b2384]
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, 0x4b6a5c
push 0
call fcn.00406670
push 1
call fcn.0043c210
lea eax, [ebp - 0x37c]
push eax
call fcn.00413e00
add esp, 8
mov ecx, eax
push 0x1d
push str.logdriver_manager_survey.log
call fcn.0040a9e0
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
cmp dword [edi + 0x14], 8
mov ebx, dword [edi + 0x10]
jb 0x40c95c
mov edi, dword [edi]
cmp ebx, 8
jae 0x40c972
movups xmm0, xmmword [edi]
mov esi, 7
movups xmmword [ebp - 0x248], xmm0
jmp 0x40c9a8
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.0040a4b0
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x248], eax
push ecx
push edi
push eax
call fcn.0044a590
add esp, 0xc
mov edx, dword [ebp - 0x368]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
cmp edx, 8
jb 0x40c9fa
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d840
push edx
push ecx
call fcn.0043f182
mov esi, dword [ebp - 0x234]
add esp, 8
push 0x490930
push 0x6400000
push 1
cmp esi, 8
lea eax, [ebp - 0x248]
push 0
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0041ad10
lea ecx, [ebp - 0x361]
call fcn.004080d0
push 0
push 0
push str.driver_management
call fcn.004067d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044b090
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 0x40ca75
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 0x40cad9
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cab0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4b6438
call fcn.00450f7a
add esp, 0x10
push 0
push str.driver_management
push 2
call fcn.004068a0
mov ecx, eax
call fcn.0041bed0
test eax, eax
jne 0x40cbc5
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40cbc5
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x348]
push 0x58
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403b70
mov esi, eax
push str.stat_init_fail
push esi
call fcn.00404c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.00404e80
lea ecx, [ebp - 0x224]
call fcn.00404530
lea ecx, [ebp - 0x360]
call fcn.00404530
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40cd24
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x348]
push 0x5b
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403b70
mov esi, eax
push str.cmdline:
push esi
call fcn.00404c20
mov eax, dword [ebp - 0x228]
mov ecx, 0x490c54
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402e60
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x348]
call fcn.00404e80
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x40cccf
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ccc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d845
push edx
push ecx
call fcn.0043f182
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 0x40cd24
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d845
push edx
push ecx
call fcn.0043f182
add esp, 8
mov edi, dword [0x4b6a9c]
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], 0x490d94
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 [0x4b6a90]
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.0044e2e4
add esp, 0xc
test eax, eax
je 0x40cdf6
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.0044e2e4
add esp, 0xc
test eax, eax
je 0x40cdf6
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x40cde7
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x40cdf3
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.004140a0
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044b090
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00414140
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bed0
add esp, 0x20
test eax, eax
jne 0x40cf27
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d6b7
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x62
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403b70
mov esi, eax
push str.parent_sign_check_not_pass
push esi
call fcn.00404c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e80
lea ecx, [ebp - 0x224]
call fcn.00404530
lea ecx, [ebp - 0x360]
call fcn.00404530
jmp 0x40d6b7
push 0x30
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.0044b090
add esp, 0xc
lea ecx, [ebp - 0x2b0]
call fcn.0041e750
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 dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.0040ac70
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0041ed90
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x40cfe3
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d84a
push edx
push ecx
call fcn.0043f182
add esp, 8
test bl, bl
je 0x40d0ca
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d0ba
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x69
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403b70
mov esi, eax
push str.not_a_cmdline
push esi
call fcn.00404c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e80
lea ecx, [ebp - 0x224]
call fcn.00404530
lea ecx, [ebp - 0x360]
call fcn.00404530
lea ecx, [ebp - 0x2b0]
call fcn.0041e850
jmp 0x40d6b1
lea eax, [ebp - 0x22c]
push eax
call fcn.00406950
add esp, 4
test al, al
je 0x40d29d
push 0x490d9c
push str.driver_survey_main_wnd_class_name
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
test ebx, ebx
je 0x40d695
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d130
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.0040ac70
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d240
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x368], 0xf
mov byte [ebp - 0x37c], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0xf
mov byte [ebp - 0x394], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x2e
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00403b70
mov esi, eax
push str.dispatch_cmdline:
push esi
call fcn.00402e60
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, 0x490c54
cmovae ecx, dword [ebp - 0x224]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00402e60
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e80
lea ecx, [ebp - 0x394]
call fcn.00404530
lea ecx, [ebp - 0x37c]
call fcn.00404530
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.00404580
jmp 0x40d695
push 0x6c
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.0044b090
add esp, 0xc
lea ecx, [ebp - 0x31c]
call fcn.0040dfe0
lea ecx, [ebp - 0x31c]
call fcn.004112e0
test al, al
jne 0x40d3a2
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d68a
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x380], 0xf
mov byte [ebp - 0x394], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 0xf
mov byte [ebp - 0x37c], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x72
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x37c]
push eax
call fcn.00403b70
mov esi, eax
push str.main_wnd_init_fail
push esi
call fcn.00404c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e80
lea ecx, [ebp - 0x37c]
call fcn.00404530
lea ecx, [ebp - 0x394]
call fcn.00404530
jmp 0x40d68a
lea eax, [ebp - 0x37c]
push eax
call fcn.00413a40
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x40d3bb
mov esi, dword [esi]
mov ecx, dword [0x4b6af4]
test ecx, ecx
jne 0x40d419
push 0x4b2058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b6af4], 0
jne 0x40d408
push 4
call fcn.0043f152
add esp, 4
test eax, eax
je 0x40d3f6
mov ecx, eax
mov dword [eax], 0
call fcn.0041be50
jmp 0x40d3f8
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4b6af4], eax
push 0x4b2058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4b6af4]
push 0
push 0
push 1
push esi
push str.start_exe
call fcn.0041bef0
mov edx, dword [ebp - 0x368]
cmp edx, 8
jb 0x40d46a
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d460
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d84f
push edx
push ecx
call fcn.0043f182
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x40d4ac
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x264]
push eax
call edi
test eax, eax
jne 0x40d4ac
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40d480
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 0x40d477
test eax, eax
je 0x40d542
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x280]
call dword [eax]
test eax, eax
jne 0x40d4fb
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 0x40d516
je 0x40d532
cmp eax, 0xf
je 0x40d532
cmp eax, 0xa0
jmp 0x40d51b
cmp eax, 0x200
je 0x40d532
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40d477
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40d477
call fcn.0041ac20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40d68a
push 0x84
push str.d:jenkins.jenkinsworkspacepay_groupdriver_managerdriver_manager_surveydriver_manager_surveydriver_manager_survey_srcmain.cc
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.0040ab70
push 3
push 0x490f10
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040ab70
call fcn.0041ac20
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x78
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403b70
mov esi, eax
push str.end_app_run...
push esi
call fcn.00404c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e80
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x40d635
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d62b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d854
push edx
push ecx
call fcn.0043f182
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 0x40d68a
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d854
push edx
push ecx
call fcn.0043f182
add esp, 8
lea ecx, [ebp - 0x31c]
call fcn.0040e290
lea ecx, [ebp - 0x2b0]
call fcn.0041e850
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x40d6b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x4b6a5c
call fcn.00407fa0
mov edi, dword [0x4b6a9c]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4b6a94]
test esi, esi
je 0x40d723
cmp dword [esi + 4], 0
jle 0x40d6f1
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4b6a94]
test esi, esi
je 0x40d723
mov eax, dword [esi]
test eax, eax
je 0x40d70a
push eax
call fcn.0044e2d4
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0043f182
add esp, 8
push edi
mov dword [0x4b6a94], 0
call ebx
mov esi, dword [0x4b6a90]
test esi, esi
je 0x40d778
mov eax, dword [esi]
test eax, eax
je 0x40d74f
push eax
call fcn.0044e2d4
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40d766
push eax
call fcn.0044e2d4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0043f182
add esp, 8
mov ecx, 0x4b6a5c
call fcn.004084c0
call fcn.0043c600
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x270]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40d7ad
push eax
call fcn.0044e2d4
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 0x40d7de
push eax
call fcn.0044e2d4
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 0x40d82e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d859
push edx
push ecx
call fcn.0043f182
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0043f641
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044e279
call fcn.0044e279
call fcn.0044e279
call fcn.0044e279
call fcn.0044e279
call fcn.0044e279
int3