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

Disassembly:
sub esp, 0x284
mov eax, dword [0x42d278]
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.00401800
cmp dword [0x4352e8], ebx
mov ebp, eax
jne 0x40a264
movzx ecx, byte [ebp + 0x68]
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 [0x435798], ecx
mov dword [esp + 0x1c], ebx
xor esi, esi
call fcn.004014f0
movzx edi, ax
cmp di, 0xffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
je 0x409d24
movsx eax, di
cmp eax, 0x101
jg 0x409a32
je 0x409a12
sub eax, 4
cmp eax, 0xc
ja case.default.0x409a51
movzx edx, byte [eax + 0x40a294]
jmp dword [edx*4 + 0x40a288]
mov esi, ebp
call fcn.00401640
cmp dword [0x4352e8], ebx
jne 0x409d24
jmp 0x4099ed
cmp di, 4
jne 0x4097f7
cmp si, 6
jne 0x409d49
cmp dword [0x4357c0], ebx
je 0x40975b
xor eax, eax
jmp 0x409740
mov cl, byte [eax + 0x436fec]
mov byte [eax + 0x4374c0], cl
add eax, 1
cmp cl, bl
jne 0x409740
mov byte [0x437500], bl
jmp 0x409780
push ebx
push 0x408b70
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [0x4352d8]
push 0x68
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
je 0x409d87
nop
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4374c0
call esi
cmp eax, 0x1f
jg 0x409dc8
push 0x437500
call esi
test eax, eax
je 0x4097d1
push 0x437500
push 0x437240
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42a248
push 0x437240
call ebx
push 0x4374c0
push 0x437240
call ebx
jmp 0x4097e1
push 0x4374c0
push 0x437240
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x437500
call esi
test eax, eax
push 1
mov ebx, ebp
jne 0x40980e
mov esi, 0x437240
jmp 0x409813
push 0x437500
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push ebx
mov ebx, ebp
mov esi, 0x437240
je 0x409813
mov esi, 0x437500
call fcn.00402390
add esp, 4
push 0x437500
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push 0
mov ebx, ebp
jne 0x409835
push 0x437240
jmp 0x40983a
push 0x437500
call fcn.00401250
lea ecx, [esp + 0x50]
add esp, 8
push ecx
mov eax, ebp
call fcn.00401dc0
add esp, 4
mov esi, ebp
call fcn.00401470
mov eax, dword [0x4352e8]
cmp eax, 0x1f8
je 0x409e39
xor ebx, ebx
cmp eax, ebx
jne 0x409d24
push 0x437500
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4098ec
cmp di, 4
mov esi, 0x4374c0
jne 0x409890
push 1
jmp 0x409891
push ebx
mov ebx, ebp
call fcn.00402390
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x54]
push 0
push 0x4374c0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
call fcn.00401250
add esp, 8
push 0x10
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebp + 0x5c]
lea ecx, [esp + 0x74]
push ecx
xor edx, edx
call fcn.00405290
mov esi, ebp
call fcn.00401470
xor ebx, ebx
mov eax, 0x10
mov ecx, str.HibunEmbedded4V9
lea edx, [esp + 0x48]
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x409918
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x409900
cmp eax, ebx
je 0x40997d
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x409967
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x409979
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x409967
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x409979
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x409967
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x409979
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x409979
cmp esi, ebx
mov edi, dword [esp + 0x14]
mov eax, 1
jg 0x40997f
or eax, 0xffffffff
jmp 0x40997f
mov edi, dword [esp + 0x14]
xor eax, eax
cmp eax, ebx
jne 0x409f0f
mov eax, 0x437240
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409990
sub eax, edx
push eax
push 0x437240
lea ecx, [esp + 0x64]
call fcn.00405480
cmp dword [0x4357ac], ebx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x4c], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
je 0x4099eb
cmp dword [0x4357a8], 0
je 0x4099eb
mov dword [0x4357b0], 1
mov dword [0x4357b4], 3
xor ebx, ebx
mov eax, ebp
movzx esi, di
call fcn.004014f0
add dword [esp + 0x18], 1
movzx edi, ax
cmp di, 0xffff
mov dword [esp + 0x14], edi
jne 0x4096d2
jmp 0x409d24
cmp si, bx
jne 0x409fbd
push ebp
call fcn.00402430
add esp, 4
cmp dword [0x4352e8], ebx
jne 0x409d24
jmp 0x4099ed
cmp eax, 0x110
jg 0x409ca1
je case.0x409a51.259
sub eax, 0x102
cmp eax, 4
ja case.default.0x409a51
jmp dword [eax*4 + 0x40a2a4]
cmp si, 0x101
jne 0x409ffe
push ebp
call fcn.004025a0
add esp, 4
cmp dword [0x4352e8], ebx
jne 0x409d24
test byte [0x436ba8], 8
je 0x4099ed
push 0x444
push ebx
push 0x436de0
mov dword [0x4357c0], 1
call fcn.00414e60
add esp, 0xc
push str.sxdmkslf.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40a03f
push str.sfmk_loadDecInfoFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a07f
push 0x436de0
call eax
test eax, eax
je 0x40a0d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x409af0
movzx ecx, word [eax + 0x437010]
mov word [eax + 0x434ec0], cx
add eax, 2
cmp cx, bx
jne 0x409af0
push 0x434ec0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
push 0x434ec0
lea esi, [eax*2 + 0x434ebe]
call fcn.00410f54
add esp, 8
cmp eax, esi
je 0x4099ed
mov edi, 0x434ec0
add edi, 0xfffffffe
jmp 0x409b40
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x409b40
mov edx, dword [0x429d84]
mov dword [edi], edx
mov edi, dword [esp + 0x14]
jmp 0x4099ed
cmp si, 0x102
jne 0x40a121
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00402700
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, eax
add esp, 4
sar edx, 0x1f
cmp ecx, ebx
mov dword [0x4357ac], ecx
mov dword [0x4357a8], eax
je 0x409b9d
mov dword [0x43580c], 1
cmp dword [0x4352e8], ebx
jne 0x409d24
jmp 0x4099ed
cmp si, 0x104
jne 0x40a162
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00402890
add esp, 4
cmp dword [0x4352e8], ebx
jne 0x409d24
cmp dword [esp + 0x24], ebx
jne 0x409be0
cmp dword [esp + 0x20], ebx
je 0x409c13
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 0x40a1a3
cmp dword [0x43580c], 1
jne 0x4099ed
push 0x4350cc
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [0x4352d4], eax
je 0x40a1f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4099ed
push 0x4350cc
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x409c63
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 2
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb43
jmp 0x409d1a
cmp eax, 0x220
jg 0x409cd3
je case.0x409a51.259
sub eax, 0x200
je 0x409cba
sub eax, 0x10
jmp 0x409cd8
mov esi, ebp
call fcn.00401640
cmp dword [0x4352e8], ebx
jne 0x409d24
add dword [esp + 0x1c], 1
jmp 0x4099ed
cmp eax, 0x300
je case.0x409a51.259
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xc0c
add esp, 0xc
mov word [0x43577e], bx
mov eax, dword [ebp]
push eax
call fcn.0040f238
add esp, 4
push ebp
call fcn.0040f5d8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
lea eax, [ecx + edx]
jmp 0x40a26e
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb6a
jmp 0x409d1a
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 1
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb7a
jmp 0x409d1a
push 0x104
mov eax, 8
test byte [0x436ba8], al
push str....._src_sfslfdec_sfmkcore.c
mov word [0x435370], bx
mov word [0x435576], bx
push 0x435578
je 0x409e15
mov dword [0x4352e8], eax
mov dword [0x4352ec], 6
call fcn.0040ead2
mov dword [0x435780], 0xb87
jmp 0x409d1a
mov dword [0x4352e8], 6
mov dword [0x4352ec], ebx
call fcn.0040ead2
mov dword [0x435780], 0xb89
jmp 0x409d1a
push 0x437500
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x104
xor esi, esi
test eax, eax
push str....._src_sfslfdec_sfmkcore.c
mov word [0x435370], si
mov word [0x435576], si
push 0x435578
je 0x409e92
mov dword [0x4352e8], 7
mov dword [0x4352ec], esi
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], si
mov dword [0x435780], 0xbb1
jmp 0x409eea
mov eax, 8
test byte [0x436ba8], al
je 0x409ebf
mov dword [0x4352e8], eax
mov dword [0x4352ec], 6
call fcn.0040ead2
mov dword [0x435780], 0xbb5
jmp 0x409ede
mov dword [0x4352e8], 6
mov dword [0x4352ec], esi
call fcn.0040ead2
mov dword [0x435780], 0xbb7
add esp, 0xc
mov word [0x43577e], si
xor esi, esi
cmp dword [0x4357ac], esi
je 0x409d24
mov dword [0x4357b0], 1
mov dword [0x4357b4], 2
jmp 0x409d24
push 0x437500
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push 0x104
push str....._src_sfslfdec_sfmkcore.c
mov word [0x435370], bx
mov word [0x435576], bx
push 0x435578
je 0x409f5c
mov dword [0x4352e8], 7
mov dword [0x4352ec], ebx
call fcn.0040ead2
mov dword [0x435780], 0xbdd
jmp 0x409fa8
mov eax, 8
test byte [0x436ba8], al
je 0x409f89
mov dword [0x4352e8], eax
mov dword [0x4352ec], 6
call fcn.0040ead2
mov dword [0x435780], 0xbe1
jmp 0x409fa8
mov dword [0x4352e8], 6
mov dword [0x4352ec], ebx
call fcn.0040ead2
mov dword [0x435780], 0xbe3
add esp, 0xc
cmp dword [0x4357ac], ebx
mov word [0x43577e], bx
jmp 0x409ef0
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xad1
jmp 0x409d1a
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xae0
jmp 0x409d1a
push 0x104
mov eax, 0xffffef20
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], eax
mov word [0x435370], bx
mov dword [0x4352ec], eax
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xaf1
jmp 0x409d1a
push 0x104
mov eax, 0xffffef1f
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], eax
mov word [0x435370], bx
mov dword [0x4352ec], eax
mov word [0x435576], bx
call fcn.0040ead2
add esp, 0xc
push esi
mov word [0x43577e], bx
mov dword [0x435780], 0xafa
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x409d24
push 0x104
mov eax, 0xffffef1e
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], eax
mov word [0x435370], bx
mov dword [0x4352ec], eax
mov word [0x435576], bx
call fcn.0040ead2
add esp, 0xc
push esi
mov word [0x43577e], bx
mov dword [0x435780], 0xb03
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x409d24
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb14
jmp 0x409d1a
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 8
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb25
jmp 0x409d1a
push 0x104
mov eax, 1
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4357b0], eax
mov dword [0x4357b4], eax
mov dword [0x4352e8], 0xe
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb31
jmp 0x409d1a
push 0x40
push str.CreateMutex
push 0x4352f0
mov dword [0x4352e8], 0xcb
call fcn.0040ead2
add esp, 0xc
mov word [0x435370], bx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
push 0x4350cc
push 0x435370
mov dword [0x4352ec], eax
call fcn.0040ead2
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435576], bx
call fcn.0040ead2
mov dword [0x435780], 0xb3a
jmp 0x409d1a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x284
ret