Function at 0x40fdc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e8
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x2e4], eax
push esi
push edi
lea ecx, [esp + 0x54]
call fcn.004a06f0
lea ecx, [esp + 0xc]
call fcn.0040fbc0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004a2b36
mov edi, dword [esp + 0x14]
add esp, 8
test edi, edi
je 0x40fe41
push 0
lea ecx, [esp + 0x14]
call fcn.004a234d
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40fe1f
cmp eax, 0xffffffff
jae 0x40fe1f
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x10]
and esi, edi
call fcn.004a2375
test esi, esi
je 0x40fe41
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [0x50f6bc]
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [0x50f6bc]
mov dword [ecx + 0x14], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
lea ecx, [esp + 0xac]
call fcn.004896b0
lea ecx, [esp + 0xac]
push ecx
push 0x6c
call fcn.0048aba0
mov edx, dword [0x50f6bc]
mov ecx, dword [edx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
add esp, 8
call edx
xor ecx, ecx
mov word [esp + 0x3c], cx
mov ecx, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fec1
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.004020b0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb4]
call fcn.00489ad0
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x40ff03
mov edx, dword [eax + 4]
jmp 0x40ff06
lea edx, [eax + 4]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff22
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004020b0
push 7
push 0
push 0x410640
push 0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0xdc]
call fcn.004d7e00
cmp dword [esp + 0x34], edi
jb 0x40ff6b
mov eax, dword [esp + 0x20]
push eax
call fcn.004b3716
add esp, 4
xor ecx, ecx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x90]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.004896d0
cmp dword [esp + 0x50], edi
jb 0x40ffa1
mov edx, dword [esp + 0x3c]
push edx
call fcn.004b3716
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [0x50f6bc]
push eax
lea esi, [ecx + 0x28]
mov dword [ecx + 8], eax
call fcn.0040d0b0
mov eax, dword [0x50f6bc]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
push 1
lea ecx, [esp + 0x1b4]
call fcn.0048d770
mov eax, dword [0x50f6bc]
lea edx, [esp + 0x1b0]
lea esi, [esp + 0x18]
mov dword [eax + 0x10], edx
call fcn.00410650
mov edi, dword [0x50f6bc]
add edi, 0x24
call fcn.0040a150
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410018
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x50f6bc]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
test al, al
je 0x410084
mov ecx, dword [0x50f6bc]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x410084
call fcn.00410290
test al, al
je 0x410084
mov ecx, dword [0x50f6bc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x1b0]
test al, al
je 0x41008b
call fcn.0048e530
mov ecx, dword [0x50f6bc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call fcn.00410510
mov ecx, dword [0x50f6bc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x1b0]
call fcn.0048e070
lea ecx, [esp + 0xc8]
call fcn.004d6be0
lea ecx, [esp + 0xac]
call fcn.004896d0
cmp dword [esp + 0x10], 0
jl 0x4100b5
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0xc], 0
jl 0x4100c2
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x14]
call fcn.0040fd50
lea ecx, [esp + 0x54]
call fcn.004a0b40
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004b3721
mov esp, ebp
pop ebp
ret 0x10