Function at 0x41a940
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x533be2
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x56adc0]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
cmp eax, edi
jne 0x41a99f
mov dword [esp + 0x14], 0x53ff09
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], cx
mov dword [esp + 0x400], edi
xor edx, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
mov byte [esp + 0x400], 1
call fcn.0042eb80
mov edx, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, edx
push edx
lea esi, [esp + 0xac]
call fcn.0042c290
mov eax, esi
add esp, 4
push eax
lea ecx, [esp + 0x3c]
call fcn.0042c4b0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
add esp, 4
cmp eax, 8
jb 0x41aa18
mov dword [esp + 0x1c], edx
jmp 0x41aa20
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, edx
cmp eax, 8
jae 0x41aa2b
lea ecx, [esp + 0x38]
mov esi, dword [esp + 0x48]
cmp eax, 8
lea ecx, [ecx + esi*2]
mov eax, edx
jae 0x41aa3d
lea eax, [esp + 0x38]
cmp eax, ecx
je 0x41aa59
mov edx, dword [esp + 0x1c]
push edx
lea edx, [esp + 0x20]
push edx
mov ebx, ecx
call fcn.004111f0
mov ebx, dword [esp + 0x20]
add esp, 8
push str.logging_get_program_version
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], 0x53ff0c
cmp eax, edi
je 0x41aa77
call eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x2c], eax
mov esi, 7
xor eax, eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov word [esp + 0x70], ax
push 0x208
lea edx, [esp + 0x1e2]
xor ecx, ecx
push edi
mov byte [esp + 0x408], 2
push edx
mov word [esp + 0x1e8], cx
call fcn.004fbb00
add esp, 0xc
push 0x105
lea eax, [esp + 0x1e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41aaf8
xor ecx, ecx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
push edi
mov word [ebx], cx
push 0x53ff0c
mov ecx, ebx
call fcn.00404bd5
jmp 0x41adba
lea eax, [esp + 0x1dc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41ab02
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1e0]
push ecx
lea ecx, [esp + 0x78]
call fcn.00404bd5
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.0040e3c0
push 0x110
mov dword [esp + 0x30], eax
lea eax, [esp + 0xd4]
push edi
push eax
call fcn.004fbb00
add esp, 0x14
lea ecx, [esp + 0xc4]
push ecx
mov dword [esp + 0xc8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 3
xor edx, edx
push 0x549c34
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], dx
call fcn.00404bd5
lea eax, [esp + 0x28]
mov byte [esp + 0x400], 3
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41abd1
cmp dword [esp + 0x28], 1
jne 0x41abd1
push 3
push 0x549c3c
lea ecx, [esp + 0x94]
call fcn.00404bd5
xor ecx, ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], cx
mov byte [esp + 0x400], 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [esp + 0xa0], 8
mov dword [esp + 0x18], eax
jb 0x41ac09
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x14], edx
jmp 0x41ac14
lea eax, [esp + 0x8c]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, str._s_r_n_s__s_THREAD_0x_X__FILE__s__OS__d._d__s__s___s_r_n
call fcn.0041b600
add esp, 4
lea edx, [esp + 0x54]
mov byte [esp + 0x400], 5
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edx
call fcn.0041b690
push eax
lea ecx, [esp + 0x74]
call fcn.0041b690
push eax
lea ecx, [esp + 0x24]
call fcn.0041b710
push eax
lea ecx, [esp + 0x30]
call fcn.0041b790
push eax
lea ecx, [esp + 0x28]
call fcn.0041b710
push eax
lea ecx, [esp + 0xcc]
call fcn.0041b790
push eax
lea ecx, [esp + 0xd0]
call fcn.0041b790
push eax
lea ecx, [esp + 0xdc]
call fcn.0041b810
push eax
lea ecx, [esp + 0x18]
call fcn.0041b710
push eax
lea ecx, [esp + 0x1c]
call fcn.0041b710
push eax
lea ecx, [esp + 0x20]
call fcn.0041b890
mov byte [esp + 0x400], 4
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x41acee
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41ace9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41ace9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, 7
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
mov word [ebx], ax
cmp ebx, ecx
je 0x41ad65
cmp dword [ebx + 0x14], 8
jb 0x41ad12
mov edx, dword [ebx]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
mov word [ebx], ax
cmp dword [esp + 0x68], 8
jae 0x41ad4b
mov ecx, dword [esp + 0x64]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.004f6f30
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add esp, 0xc
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
jmp 0x41ad79
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [ebx], ecx
mov dword [esp + 0x54], edi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
jmp 0x41ad79
cmp dword [esp + 0x68], 8
jb 0x41ad79
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
cmp dword [esp + 0xa0], 8
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
jb 0x41ada2
mov eax, dword [esp + 0x8c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], cx
cmp dword [esp + 0x84], 8
jb 0x41add1
mov edx, dword [esp + 0x70]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
cmp dword [esp + 0x4c], 8
mov word [esp + 0x70], ax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], esi
jb 0x41adfa
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
cmp dword [esp + 0xbc], 8
mov word [esp + 0x38], dx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jb 0x41ae23
mov eax, dword [esp + 0xa8]
push eax
call fcn.004f77ab
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret