Function at 0x45ac10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a60c9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4cfc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
call fcn.00480035
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45ac6b
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
test ebx, ebx
je 0x45ad68
test ebx, 0xffff0000
jne 0x45ad6c
movzx edi, bx
push edi
call fcn.00487f55
mov ebx, eax
test ebx, ebx
je 0x45ad7e
mov ecx, edi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45ad7e
push edi
push eax
push ebx
call fcn.0042066d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45ad7e
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x45acf5
push edi
mov ecx, esi
call fcn.004204f5
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
movzx eax, word [ebx]
add ebx, 2
cmp eax, 0xffffffff
jne 0x45ad0f
push ebx
call fcn.0048e8dc
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x10]
push edx
lea ecx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 0x14], ecx
call fcn.0048e0d0
add esp, 0x10
cmp eax, 0x50
ja case.0x45ae60.1
movzx ecx, byte [eax + 0x45af34]
jmp dword [ecx*4 + 0x45af24]
call fcn.0048059d
test edi, edi
jl 0x45ad5e
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x45ad5e
mov ecx, dword [ebp - 0x14]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x45ad7e
push 0x80070057
call fcn.00420000
xor eax, eax
jmp 0x45ad75
push ebx
call fcn.0048e8dc
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.00421168
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov edi, 1
mov dword [ebp - 0x18], edi
test ecx, ecx
je 0x45adb0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45adb0
push ecx
push eax
call fcn.0048f59c
add esp, 8
test eax, eax
je 0x45adb0
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x45adc8
push 0x4b263c
call fcn.0048e8dc
add esp, 4
push eax
push 0x4b263c
jmp 0x45aee4
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx - 0xc]
push 0
add eax, ecx
push esi
call fcn.00423ac2
push edi
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00423c6c
mov eax, dword [eax]
push 0x4b5360
push eax
call fcn.0048ed05
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ae18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x45ae8a
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp ebx, 1
jge 0x45ae2c
mov edi, ebx
test ebx, ebx
jle 0x45ae8a
sub ebx, edi
cmp dword [eax - 4], 1
jle 0x45ae3f
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, esi
call fcn.0042056b
mov eax, dword [esi]
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [eax + edi*2]
push edx
push ecx
push eax
call fcn.0048e19e
add esp, 0x10
cmp eax, 0x50
ja case.0x45ae60.1
movzx eax, byte [eax + 0x45af98]
jmp dword [eax*4 + 0x45af88]
call fcn.004805d5
test ebx, ebx
jl 0x45ad5e
mov eax, dword [esi]
cmp ebx, dword [eax - 8]
jg 0x45ad5e
mov dword [eax - 0xc], ebx
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + ebx*2], dx
push 0x4b4208
mov eax, esi
call fcn.0042a90d
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x45aeeb
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x45aedf
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x45aedf
push eax
call fcn.00421e21
mov dword [ebp - 0x14], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x45aed5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x45aeeb
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00421168
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45af0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret