Function at 0x401340
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x491b62
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, ecx
push 0x401200
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, ebp
call fcn.0043f462
xor ebx, ebx
push ebx
call fcn.00440ffa
add esp, 4
call fcn.00442820
call fcn.0044255a
mov dword [eax + 0x7c], ebx
push ebx
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0xa4]
push ecx
call sub.gdiplus.dll_GdiplusStartup
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x49a67c
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call fcn.00401600
mov edi, 1
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x18], edi
jle 0x4014fb
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edi*4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401600
mov byte [esp + 0x34], 1
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4014d0
push 0x49a6a4
push ecx
call fcn.0045d05a
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x401433
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x401433
mov dword [ebp + 0xb8], 1
jmp 0x4014d0
cmp dword [ecx - 0xc], ebx
jl 0x4014d0
push str._LJ
push ecx
call fcn.0045d05a
add esp, 8
cmp eax, ebx
je 0x4014cc
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4014d0
mov esi, dword [ecx - 0xc]
cmp esi, ebx
jge 0x401467
or eax, 0xffffffff
jmp 0x401484
push str._LJ
push ecx
call fcn.0045d05a
add esp, 8
cmp eax, ebx
jne 0x40147e
or eax, 0xffffffff
jmp 0x401484
sub eax, dword [esp + 0x14]
sar eax, 1
sub esi, eax
sub esi, 4
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401750
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00401b30
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x18]
jl 0x4013e2
push 0x258
call fcn.0043e1fa
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov byte [esp + 0x34], 3
cmp edi, ebx
je 0x40153b
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00401e30
add esp, 4
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00402e50
jmp 0x40153d
xor eax, eax
mov byte [esp + 0x34], bl
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0xb8], ebx
je 0x401562
mov edi, dword [0x4baf68]
call fcn.0040f7b0
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00406db0
jmp 0x401577
push ebx
mov ecx, eax
call fcn.00442a16
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40159f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret