Function at 0x407230
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0xa8]
call fcn.00413530
lea esi, [ebx + 0x1c]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x34], esi
call fcn.00413a00
test eax, eax
jne 0x4072fd
push 0x425a54
mov ecx, esi
call fcn.00414210
test eax, eax
je 0x4072fd
lea ecx, [ebx + 0x164]
call fcn.00413a00
test eax, eax
mov eax, dword [ebx + 0x3c]
jne 0x4072ce
test eax, eax
mov ecx, 0x4207f0
je 0x4072a7
mov ecx, eax
mov eax, dword [ebx + 0x16c]
test eax, eax
jne 0x4072b6
mov eax, 0x4207f0
push ecx
push eax
lea eax, [ebp - 0xa8]
push str.wilserve:___s_LSDsetup__s
push eax
call fcn.004144b0
add esp, 0x10
jmp 0x40732e
test eax, eax
mov ecx, 0x4207f0
je 0x4072d9
mov ecx, eax
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4072e5
mov eax, 0x4207f0
push ecx
push eax
lea ecx, [ebp - 0xa8]
push str.wilserve:___s_LSDsetup__s
push ecx
call fcn.004144b0
add esp, 0x10
jmp 0x40732e
lea edx, [ebx + 0x34]
lea eax, [ebp - 0x78]
push edx
push str.LSDsetup_
push eax
call fcn.004140e0
add esp, 0xc
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00413a20
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.004138f0
mov eax, dword [ebx + 0x54]
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x44], 0x4d4c464c
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x3e], 0x16
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x40], cl
test eax, eax
mov dword [ebp - 0x38], 6
jne 0x40735d
mov eax, 0x4207f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4073b6
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0x20]
push 0
push edx
lea eax, [ebp - 0x44]
push 0x10
push eax
push esi
call edi
lea ecx, [ebp - 0x20]
push 0
push ecx
lea edx, [ebp - 0x50]
push 6
push edx
push esi
mov dword [ebp - 0x50], 0x44000ff
mov dword [ebp - 0x4c], 0
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4073c2
mov eax, 0x4207f0
push eax
lea eax, [ebp - 0xf8]
push str.GlobalWIL.P3dsetup._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xf8]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x58], esi
je 0x407941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407468
mov ecx, dword [ebp + 8]
push 0x34
call fcn.00405de0
push eax
lea ecx, [ebp - 0x78]
call fcn.00413570
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00413a00
test eax, eax
je 0x407433
push str.Device_is_busy
lea ecx, [ebp - 0x78]
call fcn.00413b00
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
jne 0x40743f
mov ebx, 0x4207f0
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x40744b
mov eax, 0x4207f0
push 0x30
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.004138f0
jmp 0x40793a
lea edi, [ebx + 0x64]
push ebx
mov ecx, edi
mov dword [ebp - 0x5c], edi
call fcn.004149e0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, edi
call fcn.004149f0
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x407494
mov eax, 0x4207f0
push eax
mov ecx, edi
call fcn.00414e10
test eax, eax
je 0x40792d
mov ebx, dword [ebx + 0x54]
test ebx, ebx
jne 0x4074b0
mov ebx, 0x4207f0
push ebx
mov ecx, edi
call fcn.00414ea0
test eax, eax
je 0x40792d
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea esi, [edi + 8]
mov dword [ebp - 0x48], eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4290ac
mov dword [esi + 4], eax
call ebx
mov ecx, dword [0x4290e0]
push 0x4290ac
mov dword [esi + 8], ecx
mov dword [0x4290e0], esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov edi, dword [0x429080]
push 0x4290ac
mov dword [ebp - 0x60], edi
call ebx
mov ebx, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.WM_ATLGETHOST
call ebx
push str.WM_ATLGETCONTROL
mov dword [0x428d84], eax
call ebx
lea edx, [ebp - 0x90]
mov dword [0x428d80], eax
mov eax, dword [0x42907c]
push edx
mov ebx, 0x30
push str.AtlAxWin
push eax
mov dword [ebp - 0x90], ebx
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x4075b1
mov eax, dword [0x42907c]
mov dword [ebp - 0x90], ebx
xor ebx, ebx
push 0x7f00
push ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], 0x407ff0
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x70], 6
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], str.AtlAxWin
mov dword [ebp - 0x64], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x4290ac
call esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0xc9
push edi
call esi
push 0xf0
push 0xc9
push edi
mov dword [ebp + 8], eax
call esi
mov ebx, eax
xor eax, eax
or esi, 0xffffffff
cmp ebx, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
je 0x407601
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4078dc
mov ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, str.AtlAxWin
mov ebx, eax
test edx, edx
mov dword [ebp - 0x28], ebx
jne 0x407633
mov dword [ebp - 0x24], edx
jmp 0x407661
push str.AtlAxWin
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00417a10
mov eax, esp
push 0
push esi
push str.AtlAxWin
push eax
call fcn.00407970
mov dword [ebp - 0x24], eax
push ebx
call fcn.00407e30
mov cx, word [ebx + 2]
mov esi, eax
add esp, 4
sub esi, ebx
xor edx, edx
cmp cx, 0xffff
sete dl
mov edi, edx
cmp cx, 0xffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], edi
lea edx, [ebx + 0x10]
je 0x407694
lea edx, [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x10], 0
mov cx, word [edx]
mov ebx, eax
test ecx, ecx
mov dword [ebp - 0x2c], ecx
jle 0x407733
mov dword [ebp + 0xc], ecx
push edi
push ebx
call fcn.00407ee0
add esp, 8
mov dword [ebp + 8], eax
test edi, edi
lea eax, [ebx + 0x18]
jne 0x4076c7
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x407719
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 0x12
add ecx, esi
test edi, edi
lea esi, [ecx + eax*2 + 0x52]
je 0x4076f9
mov eax, dword [ebx + 0x14]
jmp 0x4076ff
xor eax, eax
mov ax, word [ebx + 0x10]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x4c]
push edx
push ecx
push eax
call fcn.00407f60
lea esi, [eax + esi + 3]
add esp, 0xc
and esi, 0xfffffffc
jmp 0x407720
mov edx, dword [ebp + 8]
sub edx, ebx
add esi, edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
dec eax
mov dword [ebp + 0xc], eax
jne 0x4076b0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40773b
mov edi, dword [ebp - 0x28]
jmp 0x4078a2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov ebx, eax
mov edx, ecx
mov edi, ebx
add ebx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x10], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [eax + 2], 0xffff
jne 0x40776e
add eax, 0x10
jmp 0x407774
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 8]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov word [eax], 0
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x18], edx
mov edi, dword [ebp - 0x30]
push edi
push esi
call fcn.00407ee0
add esp, 8
mov dword [ebp + 8], eax
test edi, edi
lea eax, [esi + 0x18]
jne 0x40779f
lea eax, [esi + 0x12]
cmp word [eax], 0x7b
mov dword [ebp - 0x14], eax
jne 0x407861
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
mov edi, ebx
and eax, 6
add eax, 0x12
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
mov ecx, eax
mov edi, ebx
mov edx, ecx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [ebp - 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov ecx, 0x13
mov edi, ebx
add ebx, 0x4e
rep movsd dword es:[edi], dword [esi]
test eax, eax
movsw word es:[edi], word [esi]
je 0x407815
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x40781e
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ecx + 0x10]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
push ecx
push eax
call fcn.00407f60
mov ecx, eax
mov word [ebx], ax
mov esi, dword [ebp - 0x2c]
add ebx, 2
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add ebx, eax
mov ecx, edx
mov eax, ebx
and ecx, 3
not eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
inc eax
and eax, 3
push ecx
add ebx, eax
call fcn.00407e10
add esp, 0x10
jmp 0x407889
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sub eax, esi
mov edi, ebx
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407e10
add esp, 4
inc word [eax]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
dec eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x18], eax
jne 0x407785
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x60]
push 0
push 0x40ccd0
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov esi, eax
mov eax, dword [ebp - 0x28]
cmp edi, eax
je 0x4078cf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4078f1
test ebx, ebx
je 0x4078f1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x40790c
mov ecx, dword [ebp - 0x5c]
call fcn.00414a10
mov esi, eax
jmp 0x407917
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xfffffffe
inc esi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.004138f0
mov eax, esi
jmp 0x407956
mov ecx, dword [ebp - 0x34]
push 0x4259d0
call fcn.00413b00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.004138f0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x104]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8