Function at 0x401fd0
Capabilities:
Check mutex on windows
Create directory
Inspect load icon resource
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc30
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
call fcn.0055d250
mov eax, dword [0x5e6000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00420399
push 4
call fcn.0041e43a
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x402022
mov dword [eax], vtable.CCustomOccManager.0
jmp 0x402024
xor eax, eax
push 8
mov dword [ebx + 0xd8], eax
call fcn.0041e2c1
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40204d
mov dword [eax], vtable.CImpIDispatch.0
mov dword [eax + 4], 0
jmp 0x40204f
xor eax, eax
push dword [ebx + 0xd8]
mov dword [ebx + 0xd4], eax
call fcn.004214a3
add esp, 4
push str.L4LAUNCHER
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0xcc], eax
test eax, eax
je 0x40209e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40209e
push 0
push 0
push 0x5c0948
call fcn.004222a5
xor eax, eax
jmp 0x40242e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560490
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea esi, [ebx + 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020d7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402c30
push 0x5c
push dword [esi]
call fcn.0055e3be
add esp, 8
test eax, eax
jne 0x40210a
or eax, 0xffffffff
jmp 0x40210e
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00402510
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40217c
cmp dword [edi + 0xc], 0
jl 0x402171
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x402171
push edx
call fcn.00402880
add esp, 4
mov dword [ebp - 0x220], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40216a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [esi], eax
jmp 0x40217c
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4021a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push str.logs_
call esi
push 0
push str.temp_
call esi
lea ecx, [ebp - 0x2fc]
call fcn.00423474
lea ecx, [ebp - 0x270]
mov dword [ebp - method.CBackgroundWnd.virtual_0], vtable.CBackgroundWnd.0
call fcn.00407cf0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2fc]
call fcn.00408c50
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x2fc]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x10ac]
push eax
push 0x66
mov dword [ebx + 0x20], eax
call fcn.00422588
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1004]
mov dword [ebp - method.CDialog.virtual_0], 0x5c1fd4
call fcn.00423474
mov dword [ebp - method.CWebBrowser2.virtual_0], vtable.CWebBrowser2.0
lea ecx, [ebp - 0xf84]
mov byte [ebp - 4], 3
call fcn.0040d980
lea ecx, [ebp - 0xedc]
mov byte [ebp - 4], 4
call fcn.0040d980
lea ecx, [ebp - 0xe34]
mov byte [ebp - 4], 5
call fcn.0040b740
lea ecx, [ebp - 0xcc4]
mov byte [ebp - 4], 6
call fcn.0040b740
lea ecx, [ebp - 0xb54]
mov byte [ebp - 4], 7
call fcn.0040b740
lea ecx, [ebp - 0x9e4]
mov byte [ebp - 4], 8
call fcn.0040b740
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 9
call fcn.0040b740
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 0xa
call fcn.0040b740
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0xb
call fcn.0040c0a0
lea ecx, [ebp - 0x4f4]
mov byte [ebp - 4], 0xc
call fcn.0040c0a0
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0xd
call fcn.0040c0a0
lea ecx, [ebp - 0x3b4]
mov byte [ebp - 4], 0xe
call fcn.0040c0a0
mov byte [ebp - 4], 0xf
call fcn.0042ed64
call fcn.0042ed64
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x10ac]
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x300], 0
mov dword [0x5ef708], eax
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 0x10
push eax
push 0x66
lea ecx, [ebp - 0x10ac]
call fcn.004227db
push 0
lea ecx, [ebp - 0x10ac]
call fcn.00424aef
push 0
lea eax, [ebp - 0x10ac]
push 0
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x23c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x4023fd
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebx]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, ebx
call dword [eax + 0x58]
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x4023c6
lea ecx, [ebp - 0x10ac]
call fcn.004250ea
lea ecx, [ebp - 0x2fc]
call fcn.004250ea
lea ecx, [ebp - 0x10ac]
call fcn.00402450
lea ecx, [ebp - 0x2fc]
call fcn.00408930
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055cc1b
mov esp, ebp
pop ebp
ret