Function at 0x422670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x40
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
call sub.msvcrt.dll_memset
push 0xa
lea eax, [ebp - 0x44]
push eax
push dword [ebx + 0x74]
call sub.msvcrt.dll__itow
add esp, 0x18
lea ecx, [ebp - 0x5c]
push str.__repair_r_nloop:
call fcn.004108e3
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00422558
mov edi, 0x52b264
push edi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00422558
cmp dword [ebx + 0x20], 8
lea ecx, [ebx + 0xc]
jb 0x4226e8
mov ecx, dword [ebx + 0xc]
push esi
push dword [ebx + 0x1c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00422558
mov esi, str._r_nfixtime:
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.00422558
cmp dword [ebx + 0x4c], 0
jne 0x42276e
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
lea eax, [ebp - 0x44]
push str._d__02d__02d__02d:_02d:_02d
push eax
call fcn.00422921
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_wcslen
add esp, 0x24
lea ecx, [ebx + 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00410dd4
mov edi, 0x52b264
cmp dword [ebx + 0x50], 8
lea ecx, [ebx + 0x3c]
jb 0x42277a
mov ecx, dword [ebx + 0x3c]
push dword [ebx + 0x4c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00422558
mov esi, str._r_nrunarg:
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.00422558
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push 0x2f
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x4227c2
call esi
push 0x2f
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
jmp 0x4227c7
mov esi, 0x527fb4
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.00422558
cmp dword [ebx + 0x64], 0
je 0x42280c
mov esi, 0x52bb0c
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.00422558
cmp dword [ebx + 0x68], 8
lea ecx, [ebx + 0x54]
jb 0x422800
mov ecx, dword [ebx + 0x54]
push dword [ebx + 0x64]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00422558
push edi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00422558
mov esi, dword [ebx]
jmp 0x42283a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42282b
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00422558
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x422821
cmp dword [ebx + 0x38], 8
lea ecx, [ebx + 0x24]
pop esi
jb 0x42284c
mov ecx, dword [ebx + 0x24]
push dword [ebx + 0x34]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00422558
lea eax, [ebp - 0x5c]
mov dword [ebx + 0x70], 1
push eax
mov ecx, ebx
call fcn.00422884
lea ecx, [ebp - 0x5c]
mov bl, al
call fcn.00410d88
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret