Function at 0x4011c0
Capabilities:
Check mutex on windows
Get common file path
Print debug messages
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4598fb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xd2554
call fcn.00443390
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0xd2550], eax
push ebx
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0xd2568]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.ole32.dll_CoInitialize]
push str.CBomulBoxUpdate.exes_One_and_Only_Mutex_Handle
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x4019b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401249
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b5
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0042220e
push ebx
call fcn.00426549
add esp, 4
push 0x461664
mov ecx, edi
call fcn.00426aed
lea ecx, [esp + 0xdc]
push ecx
call fcn.00408bf0
lea edx, [esp + 0xdc]
mov dword [esp + 0xd2570], ebx
mov ecx, edi
mov dword [edi + 0x20], edx
call fcn.00401ab0
lea esi, [esp + 0xa8]
call fcn.0041c970
mov byte [esp + 0xd2570], 1
call fcn.0042759d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4012d3
push 0x80004005
call fcn.00407f00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [edi + 0x13cb0c]
mov ecx, esi
mov byte [esp + 0xd2570], 2
call fcn.004081b0
mov ecx, dword [edi + 0x48]
push 0x20
push ebx
push ecx
push esi
mov dword [edi + 0x13cb1c], ebx
call fcn.00426ed6
mov ebx, esi
call fcn.00407a20
mov edi, eax
call fcn.00407aa0
mov eax, dword [esi]
push str.INSTALL
push eax
call fcn.00440414
add esp, 8
test eax, eax
jne 0x4013ab
lea edx, [esp + 0x1c]
push edx
call fcn.0040a880
mov byte [esp + 0xd2570], 3
mov eax, dword [eax]
push eax
call fcn.00407490
mov byte [esp + 0xd2570], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40136f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004076d0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0xd2570], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40197d
mov esi, dword [esi]
push str.UPDATE
push esi
call fcn.00440414
add esp, 8
test eax, eax
jne 0x4013c9
call fcn.004076d0
jmp 0x4014f0
push str.http:__mediaupdate.tgsmedia.co.kr_app_index.php
lea ecx, [esp + 0x18]
call fcn.004080b0
lea ecx, [esp + 0x10]
call fcn.004085a0
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xd2574], 5
call fcn.0040a880
mov bl, 6
push 0x3e8
mov byte [esp + 0xd2574], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x1c]
push esi
push str.BomulBox
push 0x4616e4
lea eax, [esp + 0x24]
push str.modebmain_program_sinstaller_smac_s
push eax
call fcn.00408090
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.00408350
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0xd257c], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
call fcn.00408350
add esp, 4
add eax, 0x10
lea edx, [esp + 0xb4]
mov dword [edi], eax
push edx
mov byte [esp + 0xd2580], bl
call fcn.0041cd80
lea eax, [esi - 0x10]
mov byte [esp + 0xd2570], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd2570], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd2570], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + 0x13cb00]
push str.http:__update.bomulbox.co.kr_mmsv_
call fcn.004085d0
xor edi, edi
mov dword [esp + 0x1c], edi
jmp 0x401512
xor edi, edi
lea esi, [ebx + 0x13cb08]
mov ecx, esi
call fcn.004081b0
push 0xc
push str.precondition
lea ecx, [esp + 0x20]
call fcn.004082c0
mov eax, dword [esp + 0x18]
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
mov dword [ebx + 0x13cb14], edi
mov dword [ebx + 0x13cb18], edi
call fcn.00408350
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [esp + 0xd257c], 8
mov dword [esp + 0x20], esp
push str.Update.xml
lea edi, [ebx + 0x13cb00]
push edi
push ecx
call fcn.004078f0
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0xd2580], 2
call fcn.0041cd80
cmp eax, 1
jne 0x40181e
lea eax, [esp + 0x38]
push eax
call fcn.0041ac00
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0xd2574], 9
call fcn.0041ac00
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xe4]
push ecx
push ebx
mov byte [esp + 0xd2580], 0xa
call fcn.004051a0
cmp eax, 1
jne 0x4016eb
lea ecx, [esp + 0xdc]
call fcn.00428656
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
je 0x40162f
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
jne 0x401603
mov eax, dword [ebx + 0x13cafc]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call esi
test eax, eax
jne 0x401656
mov ecx, dword [ebx + 0x13cafc]
call fcn.0040aaa0
mov eax, dword [ebx + 0x13cafc]
push eax
call esi
cmp dword [esp + 0x691b0], 0
jbe 0x40166e
cmp dword [esp + 0xd244c], 0
je 0x4018fc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xe4]
push edx
push ebx
call fcn.00405ab0
mov eax, 1
cmp dword [ebx + 0x13cb14], eax
jne 0x4016b9
cmp dword [esp + 0xeb0], eax
jne 0x4017f8
lea eax, [esp + 0x6ac]
push eax
lea esi, [esp + 0x5b0]
call fcn.00401c20
jmp 0x4017f8
cmp dword [ebx + 0x13cb18], eax
jne 0x4017f8
cmp dword [esp + 0x69eb8], eax
jne 0x4017f8
lea ecx, [esp + 0x696b4]
push ecx
lea esi, [esp + 0x695b8]
call fcn.00401c20
jmp 0x4017f8
cmp dword [esp + 0x50], 1
jne 0x4017f2
push 0x103
lea edx, [esp + 0xd2459]
push 0
push edx
mov byte [esp + 0xd2460], 0
call fcn.00442fd0
add esp, 0xc
lea eax, [esp + 0xd2454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
call fcn.004085a0
push 0x461760
lea ecx, [esp + 0xd2458]
push ecx
lea edx, [esp + 0x18]
push 0x461770
push edx
mov byte [esp + 0xd2580], 0xb
call fcn.00408090
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00408350
add eax, 0x10
add esp, 4
mov dword [esi], eax
push str.msxml6_x86.msi
lea eax, [esp + 0x34]
push edi
push eax
mov byte [esp + 0xd2580], 0xc
call fcn.004078f0
add esp, 0xc
mov byte [esp + 0xd2574], 0xd
mov eax, dword [eax]
mov ecx, eax
mov byte [esp + 0xd2574], 0xe
call fcn.00407010
test eax, eax
mov byte [esp + 0xd2570], 0xb
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x401915
mov edi, dword [esp + 0x10]
call fcn.00401cc0
lea ecx, [esp + 0x10]
call fcn.00411d80
mov ebx, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0xd2574], 9
call fcn.0041ac90
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xd2574], 2
call fcn.0041ac90
jmp 0x401824
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
call fcn.0042759d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4012c9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [ebx + 0x1a4]
push ecx
lea edx, [esp + 0x18]
push str.BM:_s
push edx
mov byte [esp + 0xd257c], 0xf
call fcn.00408090
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call edi
test eax, eax
je 0x4018c2
lea ebx, [ebx]
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x9c]
push eax
call edi
test eax, eax
jne 0x401890
lea eax, [esi - 0x10]
mov byte [esp + 0xd2570], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 1
mov dword [esp + 0x1c], eax
jl 0x401510
jmp 0x401956
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0xd2574], 9
call fcn.0041ac90
lea edx, [esp + 0x38]
push edx
jmp 0x401949
push 0
push 0x461788
push str.MSXML
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.00411d80
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xd2574], 9
call fcn.0041ac90
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0xd2574], 2
call fcn.0041ac90
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xd2570], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd2570], 0
call fcn.0041ca10
lea ecx, [esp + 0xdc]
push ecx
mov dword [esp + 0xd2574], 0xffffffff
call fcn.004019e0
xor eax, eax
mov ecx, dword [esp + 0xd2568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd2550]
xor ecx, esp
call fcn.004404d0
mov esp, ebp
pop ebp
ret