Function at 0x40ddb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0041b410
mov eax, dword [0x41c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x406c68
mov dword [ebp - 0x1010], eax
lea eax, [ebp - 0x100c]
push 0
push eax
mov dword [ebp - 0x100c], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov esi, dword [ebp - 0x100c]
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
je 0x40de31
push dword [0x41c464]
call edi
add esp, 4
mov dword [0x41c464], 0
test esi, esi
je 0x40de2b
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov dword [0x41c464], eax
mov esi, dword [ebp - 0x100c]
push esi
call edi
add esp, 4
push 0
push dword [ebp - 0x1010]
push dword [ebp + 8]
call fcn.0040d8c0
test al, al
je 0x40e3a3
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
lea eax, [ebp - 0x100c]
push 0x406c90
push 0
push eax
mov dword [ebp - 0x100c], 0
call esi
mov eax, dword [ebp - 0x100c]
add esp, 0xc
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x40df27
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov dword [ebp - 0x1010], eax
test eax, eax
jne 0x40dead
push 0x406fa8
call fcn.0040cdd0
mov byte [ebp - 0x1005], 0
jmp 0x40df0c
mov ecx, dword [ebp - 0x1014]
lea edx, [ebp - 0x1005]
xor esi, esi
call fcn.0040dc40
test eax, eax
je 0x40dee9
cmp esi, 0x400
jge 0x40df7e
mov dword [ebp + esi*4 - 0x1004], eax
lea edx, [ebp - 0x1005]
xor ecx, ecx
inc esi
call fcn.0040dc40
test eax, eax
jne 0x40dec4
push 1
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040d8c0
push dword [ebp - 0x1010]
mov byte [ebp - 0x1005], al
call edi
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
add esp, 4
push dword [ebp - 0x100c]
call edi
add esp, 4
cmp byte [ebp - 0x1005], 0
je 0x40e3a3
cmp byte [0x41c032], 0
je 0x40e194
mov eax, dword [0x41c068]
mov dword [0x41c02c], 0x41c020
test eax, eax
je 0x40dfa5
push 0x407084
push eax
push 0x41c06c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x40df72
push dword [0x41c068]
push 0x407090
call fcn.0040cdd0
add esp, 8
mov eax, dword [0x41c06c]
mov dword [0x41c5d8], eax
jmp 0x40dfaa
push 0x406ff8
call fcn.0040cdd0
push dword [ebp - 0x1010]
call edi
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
add esp, 8
mov byte [ebp - 0x1005], 0
jmp 0x40df0f
mov eax, dword [0x41c06c]
cmp byte [0x41c034], 0
jne 0x40dfbb
test eax, eax
je 0x40e10a
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0x4070f0
push 0x407110
push 0x41c030
call fcn.0040d7e0
push 0x407158
push 0x41c030
call fcn.0040d7e0
push 0x4071d8
push 0x41c030
call fcn.0040d7e0
push 0x407240
push 0x41c030
call fcn.0040d7e0
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x407260
push 0x41c030
call fcn.0040d7e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x40728c
push 0x41c030
call fcn.0040d7e0
push 0x406c90
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0
push 0
push eax
call esi
mov eax, dword [ebp - 0x100c]
add esp, 0x18
test eax, eax
je 0x40e07d
push eax
push 0x4072b8
push 0x41c030
call fcn.0040d7e0
push dword [ebp - 0x100c]
call edi
add esp, 0x10
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__wctime64]
push eax
push 0x4072e4
push 0x41c030
call fcn.0040d7e0
push dword [0x41c03c]
push 0x40730c
push 0x41c030
call fcn.0040d7e0
push dword [0x41c040]
push 0x407340
push 0x41c030
call fcn.0040d7e0
push dword [0x41c044]
push 0x407374
push 0x41c030
call fcn.0040d7e0
mov eax, dword [0x41c464]
add esp, 0x34
test eax, eax
je 0x40e0f8
push eax
push 0x4073a0
push 0x41c030
call fcn.0040d7e0
add esp, 0xc
push 0x4071d8
push 0x41c030
call fcn.0040d7e0
add esp, 8
call fcn.0040ead0
cmp byte [0x41c034], 0
mov esi, eax
jne 0x40e123
cmp dword [0x41c06c], 0
je 0x40e180
push 0x4073d0
push 0x41c030
call fcn.0040d7e0
push 0x407438
push 0x41c030
call fcn.0040d7e0
push esi
push 0x407454
push 0x41c030
call fcn.0040d7e0
push 0x4073d0
push 0x41c030
call fcn.0040d7e0
mov eax, dword [0x41c06c]
add esp, 0x24
test eax, eax
je 0x40e180
push eax
mov dword [0x41c5d8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8
cmp byte [0x41c033], 0
je 0x40e3a3
push 0x407478
push 0x41c030
call fcn.0040d7c0
mov ecx, dword [0x41c464]
add esp, 8
mov dword [ebp - 0x110], 0x40849c
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
test ecx, ecx
jne 0x40e1f1
mov eax, 0x68
lea esi, [ecx + 0x33]
lea edi, [ebp - 0x104]
mov dword [ebp - 0x10c], eax
jmp 0x40e247
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1f4
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 0xd]
cmp esi, 0x7ffffffc
ja 0x40e35b
lea eax, [esi + esi]
cmp eax, 0xfffffff8
jae 0x40e245
add eax, 3
and eax, 0xfffffffc
cmp eax, 0x100
ja 0x40e235
lea edi, [ebp - 0x104]
mov dword [ebp - 0x10c], eax
jmp 0x40e247
push eax
lea ecx, [ebp - 0x110]
call fcn.0040f350
mov edi, eax
jmp 0x40e247
xor edi, edi
test edi, edi
je 0x40e35b
push 0x406be0
mov edx, esi
mov ecx, edi
call fcn.0040d660
add esp, 4
test eax, eax
jns 0x40e2b3
push eax
push 0x407d28
call fcn.0040cdd0
mov esi, dword [ebp - 0x108]
add esp, 8
mov dword [ebp - 0x110], 0x40849c
test esi, esi
je 0x40e38f
lea ebx, [ebx]
push esi
mov esi, dword [esi]
call fcn.0041aa06
add esp, 4
test esi, esi
jne 0x40e290
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e313
push 0x407dd8
call fcn.0040cdd0
mov esi, dword [ebp - 0x108]
add esp, 4
mov dword [ebp - 0x110], 0x40849c
test esi, esi
je 0x40e38f
lea ecx, [ecx]
push esi
mov esi, dword [esi]
call fcn.0041aa06
add esp, 4
test esi, esi
jne 0x40e2f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x108]
mov dword [ebp - 0x110], 0x40849c
test esi, esi
je 0x40e344
push esi
mov esi, dword [esi]
call fcn.0041aa06
add esp, 4
test esi, esi
jne 0x40e335
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8
push 0x407620
call fcn.0040cdd0
mov esi, dword [ebp - 0x108]
add esp, 4
mov dword [ebp - 0x110], 0x40849c
test esi, esi
je 0x40e38f
lea esp, [esp]
push esi
mov esi, dword [esi]
call fcn.0041aa06
add esp, 4
test esi, esi
jne 0x40e380
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.0041a744
mov esp, ebp
pop ebp
ret 8