Function at 0x408110
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x284
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x80]
call fcn.00401670
cmp dword [0x42fde0], ebx
mov ebp, eax
jne 0x408de2
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x1c], ebx
xor esi, esi
call fcn.00401380
movzx edi, ax
cmp di, 0xffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 1
je 0x408a0e
jmp 0x4081b0
movsx eax, di
cmp eax, 0x101
jg 0x408509
je 0x4084e9
sub eax, 4
cmp eax, 0xc
ja case.default.0x408528
movzx ecx, byte [eax + 0x408e14]
jmp dword [ecx*4 + 0x408e08]
mov esi, ebp
call fcn.004014d0
cmp dword [0x42fde0], ebx
jne 0x408a0e
jmp 0x4084c4
cmp di, 4
jne 0x4082d7
cmp si, 6
jne 0x408828
cmp dword [0x4302a4], ebx
je 0x40823b
xor eax, eax
jmp 0x408220
mov cl, byte [eax + 0x431aac]
mov byte [eax + 0x431f80], cl
add eax, 1
cmp cl, bl
jne 0x408220
mov byte [0x431fc0], bl
jmp 0x408260
push ebx
push 0x4078e0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [0x42fdd0]
push eax
push 0x68
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
je 0x408873
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x431f80
call esi
cmp eax, 0x1f
jg 0x4088be
push 0x431fc0
call esi
test eax, eax
je 0x4082b1
push 0x431fc0
push 0x431d00
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x425238
push 0x431d00
call ebx
push 0x431f80
push 0x431d00
call ebx
jmp 0x4082c1
push 0x431f80
push 0x431d00
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x431fc0
call esi
test eax, eax
push 1
mov ebx, ebp
jne 0x4082ee
mov esi, 0x431d00
jmp 0x4082f3
push 0x431fc0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push ebx
mov ebx, ebp
mov esi, 0x431d00
je 0x4082f3
mov esi, 0x431fc0
call fcn.00402140
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
push 0x431fc0
call ebx
test eax, eax
mov esi, ebp
jne 0x408315
push 0x431d00
jmp 0x40831a
push 0x431fc0
call fcn.00401250
lea eax, [esp + 0x4c]
add esp, 4
push eax
mov eax, ebp
call fcn.00401b70
add esp, 4
mov esi, ebp
call fcn.00401330
mov eax, dword [0x42fde0]
cmp eax, 0x1f8
je 0x408943
test eax, eax
jne 0x408a0c
push 0x431fc0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4083c4
cmp di, 4
mov esi, 0x431f80
mov ebx, ebp
jne 0x408370
push 1
jmp 0x408372
push 0
call fcn.00402140
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x58]
add esp, 4
push 0x431f80
mov esi, ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
call fcn.00401250
add esp, 4
push 0x10
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebp + 0x5c]
xor edx, edx
call fcn.00404b00
call fcn.00401330
mov eax, 0x10
mov ecx, str.HibunEmbedded4V7
lea edx, [esp + 0x48]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4083ee
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4083d2
xor ebx, ebx
cmp eax, ebx
je 0x408455
jmp 0x4083f0
xor ebx, ebx
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40843f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x408451
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40843f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x408451
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40843f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x408451
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x408451
cmp esi, ebx
mov edi, dword [esp + 0x18]
mov eax, 1
jg 0x408457
or eax, 0xffffffff
jmp 0x408457
mov edi, dword [esp + 0x18]
xor eax, eax
cmp eax, ebx
jne 0x408a3b
mov eax, 0x431d00
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408467
sub eax, edx
push eax
push 0x431d00
lea ecx, [esp + 0x64]
call fcn.00404cf0
cmp dword [0x430294], ebx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [ebp + 0x4c], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x58], edx
je 0x4084c2
cmp dword [0x430290], 0
je 0x4084c2
mov dword [0x430298], 1
mov dword [0x43029c], 3
xor ebx, ebx
mov eax, ebp
movzx esi, di
call fcn.00401380
add dword [esp + 0x14], 1
movzx edi, ax
cmp di, 0xffff
mov dword [esp + 0x18], edi
jne 0x4081b0
jmp 0x408a0e
cmp si, bx
jne 0x408ae9
push ebp
call fcn.004021e0
add esp, 4
cmp dword [0x42fde0], ebx
jne 0x408a0e
jmp 0x4084c4
cmp eax, 0x110
jg 0x40879c
je case.0x408528.259
sub eax, 0x102
cmp eax, 4
ja case.default.0x408528
jmp dword [eax*4 + 0x408e24]
cmp si, 0x101
jne 0x408b34
push ebp
call fcn.00402320
add esp, 4
cmp dword [0x42fde0], ebx
jne 0x408a0e
test byte [0x431670], 8
je 0x4084c4
push 0x444
push ebx
push 0x4318a0
mov dword [0x4302a4], 1
call fcn.004130d0
mov eax, dword [0x4302cc]
add esp, 0xc
cmp eax, ebx
je 0x40858b
mov ecx, dword [0x4302d0]
push ecx
call eax
push str.sxdmkslf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x408b7f
mov eax, dword [0x4302c8]
cmp eax, ebx
je 0x4085b0
push 0x4302d0
call eax
push str.sfmk_loadDecInfoFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408bc9
push 0x4318a0
call eax
test eax, eax
je 0x408c1a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x431ad0]
mov word [eax + 0x42f9b8], cx
add eax, 2
cmp cx, bx
jne 0x4085e0
push 0x42f9b8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
push 0x42f9b8
lea esi, [eax*2 + 0x42f9b6]
call fcn.00410ae5
add esp, 8
cmp eax, esi
je 0x4084c4
mov edi, 0x42f9b8
add edi, 0xfffffffe
jmp 0x408630
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408630
mov edx, dword [0x424dcc]
mov dword [edi], edx
mov edi, dword [esp + 0x18]
jmp 0x4084c4
cmp si, 0x102
jne 0x408c6b
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.00402450
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, eax
add esp, 8
sar edx, 0x1f
cmp ecx, ebx
mov dword [0x430294], ecx
mov dword [0x430290], eax
je 0x40868c
mov dword [0x4302dc], 1
cmp dword [0x42fde0], ebx
jne 0x408a0e
jmp 0x4084c4
cmp si, 0x104
jne 0x408cb6
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004025b0
add esp, 8
cmp dword [0x42fde0], ebx
jne 0x408a0e
cmp dword [esp + 0x24], ebx
jne 0x4086ce
cmp dword [esp + 0x20], ebx
je 0x408701
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x408d01
cmp dword [0x4302dc], 1
jne 0x4084c4
push 0x42fbc4
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [0x42fdcc], eax
je 0x408d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4084c4
push 0x42fbc4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x408751
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 2
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x876
jmp 0x408a0e
cmp eax, 0x220
jg 0x4087d2
je case.0x408528.259
sub eax, 0x200
je 0x4087b5
sub eax, 0x10
jmp 0x4087d7
mov esi, ebp
call fcn.004014d0
cmp dword [0x42fde0], ebx
jne 0x408a0e
add dword [esp + 0x1c], 1
jmp 0x4084c4
cmp eax, 0x300
je case.0x408528.259
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x947
jmp 0x408a0e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x8a9
jmp 0x408a0e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 1
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x8b8
jmp 0x408a0e
push 0x104
mov eax, 8
test byte [0x431670], al
push str....._src_sfslfdec_sfmkcore.c
mov word [0x42fe68], bx
mov word [0x43006e], bx
push 0x430070
je 0x408915
mov dword [0x42fde0], eax
mov dword [0x42fde4], 6
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x8c5
jmp 0x408a0e
mov dword [0x42fde0], 6
mov dword [0x42fde4], ebx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x8c7
jmp 0x408a0e
push 0x431fc0
call ebx
push 0x104
xor esi, esi
test eax, eax
push str....._src_sfslfdec_sfmkcore.c
mov word [0x42fe68], si
mov word [0x43006e], si
push 0x430070
je 0x408998
mov dword [0x42fde0], 7
mov dword [0x42fde4], esi
call fcn.0040d045
add esp, 0xc
mov word [0x430276], si
mov dword [0x430278], 0x8ef
jmp 0x4089f0
mov eax, 8
test byte [0x431670], al
je 0x4089c5
mov dword [0x42fde0], eax
mov dword [0x42fde4], 6
call fcn.0040d045
mov dword [0x430278], 0x8f3
jmp 0x4089e4
mov dword [0x42fde0], 6
mov dword [0x42fde4], esi
call fcn.0040d045
mov dword [0x430278], 0x8f5
add esp, 0xc
mov word [0x430276], si
xor esi, esi
cmp dword [0x430294], esi
je 0x408a0c
mov dword [0x430298], 1
mov dword [0x43029c], 2
xor ebx, ebx
cmp ebp, ebx
je 0x408dd6
mov eax, dword [ebp]
push eax
call fcn.0040d9d5
add esp, 4
push ebp
call fcn.0040da51
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [ecx + edx]
jmp 0x408dec
push 0x431fc0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push 0x104
push str....._src_sfslfdec_sfmkcore.c
mov word [0x42fe68], bx
mov word [0x43006e], bx
push 0x430070
je 0x408a88
mov dword [0x42fde0], 7
mov dword [0x42fde4], ebx
call fcn.0040d045
mov dword [0x430278], 0x918
jmp 0x408ad4
mov eax, 8
test byte [0x431670], al
je 0x408ab5
mov dword [0x42fde0], eax
mov dword [0x42fde4], 6
call fcn.0040d045
mov dword [0x430278], 0x91c
jmp 0x408ad4
mov dword [0x42fde0], 6
mov dword [0x42fde4], ebx
call fcn.0040d045
mov dword [0x430278], 0x91e
add esp, 0xc
cmp dword [0x430294], ebx
mov word [0x430276], bx
jmp 0x4089f6
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x7fc
jmp 0x408a0e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x80b
jmp 0x408a0e
push 0x104
mov eax, 0xffffef20
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], eax
mov word [0x42fe68], bx
mov dword [0x42fde4], eax
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x820
jmp 0x408a0e
push 0x104
mov eax, 0xffffef1f
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], eax
mov word [0x42fe68], bx
mov dword [0x42fde4], eax
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
push esi
mov word [0x430276], bx
mov dword [0x430278], 0x82d
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408a0e
push 0x104
mov eax, 0xffffef1e
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], eax
mov word [0x42fe68], bx
mov dword [0x42fde4], eax
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
push esi
mov word [0x430276], bx
mov dword [0x430278], 0x836
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408a0e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x847
jmp 0x408a0e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x858
jmp 0x408a0e
push 0x104
mov eax, 1
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x430298], eax
mov dword [0x43029c], eax
mov dword [0x42fde0], 0xe
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x864
jmp 0x408a0e
push 0x40
push str.CreateMutex
push 0x42fde8
mov dword [0x42fde0], 0xcb
call fcn.0040d045
add esp, 0xc
mov word [0x42fe68], bx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
push 0x42fbc4
push 0x42fe68
mov dword [0x42fde4], eax
call fcn.0040d045
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x86d
jmp 0x408a0e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
jmp 0x408dec
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, edx
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x284
ret