Function at 0x402910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af28
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x48b378]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
xor eax, eax
mov dword [ebp - 0x94], 7
push str.main
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
call fcn.00402500
lea edx, [ebp - 0xa8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x328]
call fcn.0040b730
mov esi, dword [eax]
xor eax, eax
cmp byte [0x48e2d4], al
setne al
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4029af
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4029af
push eax
call fcn.0045d2df
add esp, 4
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x4029df
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4029df
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4029df
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x402a04
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00402430
cmp byte [0x48e2d4], 0
je 0x402f9e
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00451470
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x90]
push str.log._d.txt
push eax
call fcn.00404ca0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x48e414]
cmp eax, dword [ecx + 4]
jle 0x402a87
push 0x48e414
call fcn.0044e9e8
add esp, 4
cmp dword [0x48e414], 0xffffffff
jne 0x402a87
push 0x46d810
call fcn.0044ed3f
add esp, 4
push 0x48e414
call fcn.0044e9a9
add esp, 4
lea ecx, [ebp - 0x358]
call fcn.0040b210
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00404cc0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x344]
cmp eax, 8
jb 0x402ad2
inc eax
lea ecx, [ebp - 0x358]
push eax
push dword [ebp - 0x358]
call fcn.00402430
xor eax, eax
mov dword [ebp - 0x344], 7
mov word [ebp - 0x358], ax
xorps xmm0, xmm0
mov word [ebp - 0xb8], ax
mov dword [ebp - 0xae], eax
mov word [ebp - 0xaa], ax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0x348], 0
movq qword [ebp - 0xb6], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x250
lea eax, [ebp - 0x308]
push 0
push eax
call fcn.00451470
add esp, 0xc
lea ecx, [ebp - 0x308]
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
je 0x402bd0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2ec]
xor ecx, ecx
or ecx, dword [ebp - 0x2e8]
or eax, 0
mov dword [ebp - 0x35c], eax
ja 0x402b7f
cmp ecx, 0xa00000
jbe 0x402bd0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x402baa
mov eax, dword [ecx]
jmp 0x402bac
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0xa8]
push edx
push eax
call fcn.00402030
mov edx, 0x64
lea ecx, [edx - 0x62]
call fcn.0040df40
add esp, 0x18
cmp dword [ebp - 0x94], 8
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x30c], 7
cmovae edx, dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
cmp word [edx], ax
jne 0x402c0a
xor ecx, ecx
jmp 0x402c1f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402c10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x320]
call fcn.00402500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x340]
push 4
xor eax, eax
mov dword [ebp - 0x32c], 7
push str.main
mov dword [ebp - 0x330], 0
mov word [ebp - 0x340], ax
call fcn.00402500
lea edx, [ebp - 0x340]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x328]
call fcn.0040b730
push ecx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 7
push ecx
mov ecx, dword [eax]
call fcn.0040ba30
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x402cb4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402cb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402cb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x32c]
cmp eax, 8
jb 0x402cd2
inc eax
lea ecx, [ebp - 0x340]
push eax
push dword [ebp - 0x340]
call fcn.00402430
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x340], ax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x32c], 7
mov dword [ebp - 0x330], 0
cmp eax, 8
jb 0x402d11
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x328]
call fcn.0040b730
push ecx
mov ecx, dword [eax]
call fcn.0040bb30
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x402d8a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402d8a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402d8a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x402dac
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x328]
call fcn.0040b730
push ecx
mov ecx, dword [eax]
call fcn.0040b9e0
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x402e25
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402e25
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402e25
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x402e47
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x328]
call fcn.0040b730
push ecx
mov ecx, dword [eax]
call fcn.0040bd50
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x402ec0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402ec0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402ec0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x402ee2
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x328]
call fcn.0040b730
push ecx
mov ecx, dword [eax]
call fcn.0040bda0
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x402f5b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402f5b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402f5b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x402f79
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x402f9e
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x328]
call fcn.0040b730
mov byte [ebp - 4], 0x12
push str._________________________________________________________r_n
push dword [eax]
call fcn.0040bb90
add esp, 8
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x403025
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x403025
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x403025
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x40304a
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea edx, [ebp - 0x320]
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x328]
call fcn.0040b730
mov byte [ebp - 4], 0x15
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.New_Instance_Begins..._r_n_s_r_n
push esi
call fcn.0040bb90
add esp, 0xc
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x4030d9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4030d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4030d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x4030fe
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x30c], 7
push str.main
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x310], 0
mov word [ebp - 0x320], ax
call fcn.00402500
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0x17
call fcn.0040da40
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x358]
call fcn.0040dc50
mov esi, eax
lea edx, [ebp - 0x320]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x328]
call fcn.0040b730
mov byte [ebp - 4], 0x1a
cmp dword [esi + 0x14], 8
jb 0x403173
mov esi, dword [esi]
push esi
push str.Version:__s_r_n
push dword [eax]
call fcn.0040bb90
add esp, 0xc
mov byte [ebp - 4], 0x1b
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x4031b0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4031b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4031b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x344]
cmp eax, 8
jb 0x4031ce
inc eax
lea ecx, [ebp - 0x358]
push eax
push dword [ebp - 0x358]
call fcn.00402430
xor eax, eax
mov dword [ebp - 0x344], 7
mov word [ebp - 0x358], ax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x348], 0
cmp eax, 8
jb 0x403209
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00402430
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0xa8], ax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
cmp eax, 8
jb 0x40324b
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.00402430
push 4
xor eax, eax
mov dword [ebp - 0x32c], 7
push str.main
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x330], 0
mov word [ebp - 0x340], ax
call fcn.00402500
lea edx, [ebp - 0x340]
mov dword [ebp - 4], 0x1c
lea ecx, [ebp - 0x360]
call fcn.0040b730
mov byte [ebp - 4], 0x1d
push str._________________________________________________________r_n
push dword [eax]
call fcn.0040bb90
add esp, 8
mov byte [ebp - 4], 0x1e
mov esi, dword [ebp - 0x35c]
test esi, esi
je 0x4032d1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4032d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4032d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x32c]
cmp eax, 8
jb 0x4032ef
inc eax
lea ecx, [ebp - 0x340]
push eax
push dword [ebp - 0x340]
call fcn.00402430
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e878
mov esp, ebp
pop ebp
ret