Function at 0x4135a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x48d1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f10
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [0x493634]
cmp ecx, esi
je 0x41363d
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jl 0x41363d
push ecx
push eax
call fcn.0044b514
add esp, 8
cmp eax, esi
je 0x41363d
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41363d
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41362b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0x10
mov dword [ebp - 0x3c], esi
call fcn.004491d6
add esp, 4
cmp eax, esi
je 0x413c6f
mov dword [eax], eax
mov dword [ebp - 0x40], eax
mov dword [eax + 4], eax
mov ebx, 2
push 0x4936d8
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x493930], 1
jne 0x4136a4
or dword [0x493930], 1
push 0x4705f0
call fcn.0044919e
add esp, 4
push 0x4936d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x18]
push ecx
lea esi, [ebp - 0x40]
call fcn.00420970
test byte [0x493a10], 1
mov edi, eax
jne 0x4136e6
or dword [0x493a10], 1
mov byte [ebp - 4], 3
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
mov edx, str.success
cmp edi, 1
jne 0x4136f5
mov edx, str.error
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x413700
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, 0x493980
call fcn.00401e10
test byte [0x493a10], 1
jne 0x413743
or dword [0x493a10], 1
mov byte [ebp - 4], 4
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
mov edx, 0x47751c
cmp edi, ebx
jne 0x413751
mov edx, 0x477604
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x413756
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, 0x493984
call fcn.00401e10
test byte [0x493a10], 1
jne 0x413799
or dword [0x493a10], 1
mov byte [ebp - 4], 5
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x18]
mov edi, 0x493988
call fcn.00404cd0
xor esi, esi
push 0x10
mov dword [ebp - 0x54], esi
call fcn.004491d6
add esp, 4
cmp eax, esi
je 0x413c4b
mov dword [ebp - 0x58], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x58]
mov dword [eax + 4], eax
mov byte [ebp - 4], 6
push 0x10
mov dword [ebp - 0x48], esi
call fcn.004491d6
add esp, 4
cmp eax, esi
je 0x413c27
mov dword [ebp - 0x4c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], eax
push 0x4936d8
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x493930], 1
jne 0x413818
or dword [0x493930], 1
push 0x4705f0
call fcn.0044919e
add esp, 4
push 0x4936d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 1
mov eax, dword [eax]
sub esp, 0x14
mov dword [ebp - 0x30], eax
mov eax, esp
lea ecx, [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x58]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x30]
mov esi, 0x493924
mov dword [eax + 8], esi
lea edi, [ebp - 0x4c]
mov dword [eax + 0xc], edi
push ecx
lea ebx, [ebp - 0x14]
mov dword [eax + 0x10], ebx
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00424810
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0x20
push 0x4936d8
call esi
mov ebx, 1
test byte [0x493930], bl
jne 0x413898
or dword [0x493930], ebx
push 0x4705f0
call fcn.0044919e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4936d8
call edi
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00420ba0
push 0x4936d8
mov byte [ebp - 4], 8
call esi
test byte [0x493930], 1
jne 0x4138d9
or dword [0x493930], ebx
push 0x4705f0
call fcn.0044919e
add esp, 4
push 0x4936d8
call edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00420ba0
push 0x4936d8
mov byte [ebp - 4], 9
call esi
test byte [0x493930], 1
jne 0x413914
or dword [0x493930], ebx
push 0x4705f0
call fcn.0044919e
add esp, 4
push 0x4936d8
call edi
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00420ba0
push 0x4936d8
mov byte [ebp - 4], 0xa
call esi
test byte [0x493930], 1
jne 0x41394f
or dword [0x493930], ebx
push 0x4705f0
call fcn.0044919e
add esp, 4
push 0x4936d8
call edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00420ba0
mov bl, 0xb
mov byte [ebp - 4], bl
test byte [0x493a10], 1
mov esi, 1
jne 0x413995
or dword [0x493a10], esi
mov byte [ebp - 4], 0xc
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x2c]
mov edi, 0x49398c
call fcn.00404cd0
test byte [0x493a10], 1
jne 0x4139ca
or dword [0x493a10], esi
mov byte [ebp - 4], 0xd
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x28]
mov edi, 0x493990
call fcn.00404cd0
test byte [0x493a10], 1
jne 0x4139ff
or dword [0x493a10], esi
mov byte [ebp - 4], 0xe
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x20]
mov edi, 0x493998
call fcn.00404cd0
test byte [0x493a10], 1
jne 0x413a34
or dword [0x493a10], esi
mov byte [ebp - 4], 0xf
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x24]
mov edi, 0x493994
call fcn.00404cd0
test byte [0x493a10], 1
jne 0x413a69
or dword [0x493a10], esi
mov byte [ebp - 4], 0x10
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x477604
mov ecx, 0x4939a4
call fcn.00401e10
test byte [0x493a10], 1
jne 0x413aa2
or dword [0x493a10], esi
mov byte [ebp - 4], 0x11
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x477604
mov ecx, 0x49399c
call fcn.00401e10
test byte [0x493a10], 1
jne 0x413adb
or dword [0x493a10], esi
mov byte [ebp - 4], 0x12
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x477604
mov ecx, 0x4939a0
call fcn.00401e10
test byte [0x493a10], 1
jne 0x413b14
or dword [0x493a10], esi
mov byte [ebp - 4], 0x13
call fcn.00426590
push 0x4702d0
call fcn.0044919e
add esp, 4
mov byte [ebp - 4], bl
mov ecx, 0x493978
call fcn.00447b10
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.00413d00
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00448ed0
add esp, 4
lea ebx, [ebp - 0x58]
mov byte [ebp - 4], 0x15
call fcn.00413d00
mov edx, dword [ebp - 0x58]
push edx
call fcn.00448ed0
add esp, 4
lea ebx, [ebp - 0x40]
mov byte [ebp - 4], 0x16
call fcn.00413d00
mov eax, dword [ebp - 0x40]
push eax
call fcn.00448ed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x413612
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x34], esi
call fcn.004497b1
push 0x483514
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], vtable.std::bad_alloc.0
call fcn.0044c8b0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], esi
call fcn.004497b1
push 0x483514
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x70], vtable.std::bad_alloc.0
call fcn.0044c8b0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x34], esi
call fcn.004497b1
push 0x483514
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::bad_alloc.0
call fcn.0044c8b0
int3