Function at 0x4627f0
Capabilities:
Check mutex on windows
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468d04
mov eax, dword fs:[0]
push eax
mov eax, 0x1bc4
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b78], ecx
mov dword [ebp - 0x105c], 0
cmp dword [ebp + 0x10], 0
jne 0x46292e
push str.GlobalywSMP_version_2
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x111c], eax
cmp dword [ebp - 0x111c], 0
je 0x46292e
mov eax, dword [ebp - 0x111c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x105c], 0x476e08
push 1
push 2
lea ecx, [ebp - 0x119c]
call fcn.00407d10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x105c]
push ecx
lea edx, [ebp - 0x119c]
push edx
call fcn.004052a0
add esp, 8
lea eax, [ebp - 0x1a40]
push eax
lea ecx, [ebp - 0x119c]
call fcn.004048a0
mov dword [ebp - 0x1b7c], eax
mov ecx, dword [ebp - 0x1b7c]
mov dword [ebp - 0x1b80], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1b80]
call fcn.00408250
push eax
push 0x476e18
push 0x15c
push 0x476e3c
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a40]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x119c]
call fcn.004055a0
mov edx, dword [ebp - 0x105c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004620d0
add esp, 8
jmp 0x4634a1
push str.GlobalywSMP_version_3
lea ecx, [ebp - 0x10]
call fcn.00404680
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004095b0
test eax, eax
je 0x46295f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x462a2b
mov dword [ebp - 0x105c], 0x476e68
push 1
push 2
lea ecx, [ebp - 0x121c]
call fcn.00407d10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x105c]
push ecx
lea edx, [ebp - 0x121c]
push edx
call fcn.004052a0
add esp, 8
lea eax, [ebp - 0x1a5c]
push eax
lea ecx, [ebp - 0x121c]
call fcn.004048a0
mov dword [ebp - 0x1b84], eax
mov ecx, dword [ebp - 0x1b84]
mov dword [ebp - 0x1b88], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1b88]
call fcn.00408250
push eax
push 0x476e78
push 0x167
push 0x476e9c
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1a5c]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x121c]
call fcn.004055a0
mov edx, dword [ebp - 0x105c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004620d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
jmp 0x4634a1
push 0x1000
lea ecx, [ebp - 0x103c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x1078]
push edx
call fcn.00415af0
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x1058]
call fcn.00406300
mov byte [ebp - 4], 6
push 0x476eb0
lea ecx, [ebp - 0x1058]
call fcn.004011a0
lea ecx, [ebp - 0x1078]
call fcn.00408da0
push eax
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x1078]
call fcn.00408250
push eax
call fcn.004403d7
add esp, 0xc
test eax, eax
je 0x462fb3
push 0
lea ecx, [ebp - 0x1078]
call fcn.00408250
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x1058]
call fcn.00408250
push eax
lea edx, [ebp - 0x103c]
push edx
call fcn.0040de30
add esp, 0xc
test eax, eax
jne 0x462fb3
cmp dword [ebp + 0x10], 0
je 0x462e8b
call fcn.00464d90
push 0x3e8
call fcn.004143c0
add esp, 4
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x12e0]
call fcn.00406300
mov byte [ebp - 4], 7
push str.ywSMPASvr.up
lea ecx, [ebp - 0x12e0]
call fcn.004011a0
push 0x476ed0
lea ecx, [ebp - 0x12e0]
call fcn.00408250
push eax
call fcn.0043cbf8
add esp, 8
mov dword [ebp - 0x1240], eax
cmp dword [ebp - 0x1240], 0
je 0x462b5e
mov ecx, dword [ebp - 0x1240]
push ecx
call fcn.0043cc86
add esp, 4
jmp 0x462c57
mov dword [ebp - 0x105c], 0x476ed4
push 1
push 2
lea ecx, [ebp - 0x1364]
call fcn.00407d10
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x105c]
push edx
lea eax, [ebp - 0x1364]
push eax
call fcn.004052a0
add esp, 8
lea ecx, [ebp - 0x1a78]
push ecx
lea ecx, [ebp - 0x1364]
call fcn.004048a0
mov dword [ebp - 0x1b8c], eax
mov edx, dword [ebp - 0x1b8c]
mov dword [ebp - 0x1b90], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1b90]
call fcn.00408250
push eax
push 0x476ee8
push 0x191
push 0x476f0c
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a78]
call fcn.00408840
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1364]
call fcn.004055a0
mov eax, dword [ebp - 0x105c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004620d0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x12e0]
call fcn.00408840
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1058]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
jmp 0x4634a1
push 1
push 2
lea ecx, [ebp - 0x12c4]
call fcn.00407d10
mov byte [ebp - 4], 0xa
push str.net_stop_ywSMPASvr
lea edx, [ebp - 0x12c4]
push edx
call fcn.004052a0
add esp, 8
lea eax, [ebp - 0x1a94]
push eax
lea ecx, [ebp - 0x12c4]
call fcn.004048a0
mov dword [ebp - 0x1b94], eax
mov ecx, dword [ebp - 0x1b94]
mov dword [ebp - 0x1b98], ecx
mov byte [ebp - 4], 0xb
push 0x20
push 0
push 0
mov ecx, dword [ebp - 0x1b98]
call fcn.00408250
push eax
lea ecx, [ebp - 0x35]
call fcn.0040f2a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1a94]
call fcn.00408840
push 0x1f40
call fcn.004143c0
add esp, 4
lea ecx, [ebp - 0x123c]
call fcn.00401100
mov byte [ebp - 4], 0xc
push str.ywSMPASvr.exe
lea ecx, [ebp - 0x123c]
call fcn.00412e00
push str.ywSMPAgent.exe
lea ecx, [ebp - 0x123c]
call fcn.00412e00
lea ecx, [ebp - 0x12e0]
call fcn.00408250
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x1058]
call fcn.00408250
push eax
lea edx, [ebp - 0x103c]
push edx
call fcn.0040de30
add esp, 0xc
test eax, eax
jne 0x462e59
mov dword [ebp - 0x105c], 0x476f54
push 1
push 2
lea ecx, [ebp - 0x13e4]
call fcn.00407d10
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x13e4]
push ecx
call fcn.004052a0
add esp, 8
lea edx, [ebp - 0x1ab0]
push edx
lea ecx, [ebp - 0x13e4]
call fcn.004048a0
mov dword [ebp - 0x1b9c], eax
mov eax, dword [ebp - 0x1b9c]
mov dword [ebp - 0x1ba0], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1ba0]
call fcn.00408250
push eax
push 0x476f6c
push 0x1a7
push 0x476f90
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1ab0]
call fcn.00408840
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x13e4]
call fcn.004055a0
mov ecx, dword [ebp - 0x105c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004620d0
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x123c]
call fcn.00401120
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x12c4]
call fcn.004055a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x12e0]
call fcn.00408840
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1058]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
jmp 0x4634a1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x123c]
call fcn.00401120
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x12c4]
call fcn.004055a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x12e0]
call fcn.00408840
jmp 0x462fb3
lea ecx, [ebp - 0x1404]
call fcn.00401040
mov byte [ebp - 4], 0xf
push 0x476fa4
lea ecx, [ebp - 0x1404]
call fcn.00414be0
test eax, eax
je 0x462eba
mov dword [ebp - 0x105c], 0x476fb0
jmp 0x462ec4
mov dword [ebp - 0x105c], 0x476fc8
push 1
push 2
lea ecx, [ebp - 0x1484]
call fcn.00407d10
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x1484]
push ecx
call fcn.004052a0
add esp, 8
lea edx, [ebp - 0x1acc]
push edx
lea ecx, [ebp - 0x1484]
call fcn.004048a0
mov dword [ebp - 0x1ba4], eax
mov eax, dword [ebp - 0x1ba4]
mov dword [ebp - 0x1ba8], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1ba8]
call fcn.00408250
push eax
push 0x476fd8
push 0x1b8
push 0x476ffc
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1acc]
call fcn.00408840
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1484]
call fcn.004055a0
mov ecx, dword [ebp - 0x105c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004620d0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1404]
call fcn.00401060
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1058]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
jmp 0x4634a1
lea eax, [ebp - 0x1078]
push eax
lea ecx, [ebp - 0x1118]
call fcn.00406300
mov byte [ebp - 4], 0x12
push str.config.ini
lea ecx, [ebp - 0x1118]
call fcn.004011a0
lea ecx, [ebp - 0x1118]
call fcn.00408250
push eax
lea ecx, [ebp - 0x34]
call fcn.00415f10
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp + 8]
push ecx
push str.distrbip
push 0x477028
lea ecx, [ebp - 0x34]
call fcn.00415ec0
mov edx, dword [ebp + 0xc]
push edx
push str.serverip
push str.CONFIG
lea ecx, [ebp - 0x34]
call fcn.00415ec0
push 1
push 2
lea ecx, [ebp - 0x10fc]
call fcn.00407d10
mov byte [ebp - 4], 0x14
push 0x477044
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x10fc]
push ecx
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea edx, [ebp - 0x1ae8]
push edx
lea ecx, [ebp - 0x10fc]
call fcn.004048a0
mov dword [ebp - 0x1bac], eax
mov eax, dword [ebp - 0x1bac]
mov dword [ebp - 0x1bb0], eax
mov byte [ebp - 4], 0x15
push 0x20
push 0
push 0x493e0
mov ecx, dword [ebp - 0x1bb0]
call fcn.00408250
push eax
lea ecx, [ebp - 0x35]
call fcn.0040f2d0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1ae8]
call fcn.00408840
cmp dword [ebp - 0x14], 0
jle 0x463172
mov dword [ebp - 0x105c], 0x477048
push 1
push 2
lea ecx, [ebp - 0x1504]
call fcn.00407d10
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x105c]
push ecx
lea edx, [ebp - 0x1504]
push edx
call fcn.004052a0
add esp, 8
lea eax, [ebp - 0x1b04]
push eax
lea ecx, [ebp - 0x1504]
call fcn.004048a0
mov dword [ebp - 0x1bb4], eax
mov ecx, dword [ebp - 0x1bb4]
mov dword [ebp - 0x1bb8], ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x1bb8]
call fcn.00408250
push eax
push 0x477054
push 0x1cf
push 0x477078
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1b04]
call fcn.00408840
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1504]
call fcn.004055a0
mov edx, dword [ebp - 0x105c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004620d0
add esp, 8
jmp 0x46344a
cmp dword [ebp - 0x14], 0
jge 0x46324a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47708c
lea ecx, [ebp - 0x1904]
push ecx
call fcn.0043cd02
add esp, 0xc
push 1
push 2
lea ecx, [ebp - 0x1984]
call fcn.00407d10
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x1904]
push edx
lea eax, [ebp - 0x1984]
push eax
call fcn.004052a0
add esp, 8
lea ecx, [ebp - 0x1b20]
push ecx
lea ecx, [ebp - 0x1984]
call fcn.004048a0
mov dword [ebp - 0x1bbc], eax
mov edx, dword [ebp - 0x1bbc]
mov dword [ebp - 0x1bc0], edx
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x1bc0]
call fcn.00408250
push eax
push 0x47709c
push 0x1d7
push 0x4770c0
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1b20]
call fcn.00408840
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1984]
call fcn.004055a0
lea eax, [ebp - 0x1904]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004620d0
add esp, 8
jmp 0x46344a
push 0x3e8
call fcn.004143c0
add esp, 4
lea ecx, [ebp - 0x19a4]
call fcn.00401040
mov byte [ebp - 4], 0x1a
push 0x4770d4
lea ecx, [ebp - 0x19a4]
call fcn.00414be0
test eax, eax
jne 0x4633a1
mov dword [ebp - 0x105c], 0x4770e0
push 1
push 2
lea ecx, [ebp - 0x1a24]
call fcn.00407d10
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x105c]
push edx
lea eax, [ebp - 0x1a24]
push eax
call fcn.004052a0
add esp, 8
lea ecx, [ebp - 0x1b3c]
push ecx
lea ecx, [ebp - 0x1a24]
call fcn.004048a0
mov dword [ebp - 0x1bc4], eax
mov edx, dword [ebp - 0x1bc4]
mov dword [ebp - 0x1bc8], edx
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x1bc8]
call fcn.00408250
push eax
push str.CEDSNtService::DistributionRegist
push 0x1e2
push str..EDSNtService.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1b3c]
call fcn.00408840
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1a24]
call fcn.004055a0
mov eax, dword [ebp - 0x105c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004620d0
add esp, 8
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x19a4]
call fcn.00401060
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10fc]
call fcn.004055a0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34]
call fcn.004010e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1118]
call fcn.00408840
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1058]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
jmp 0x4634a1
push 0x47533f
lea ecx, [ebp - 0x1b58]
call fcn.00408210
mov byte [ebp - 4], 0x1d
lea edx, [ebp - 0x1b58]
push edx
lea ecx, [ebp - 0x10fc]
call fcn.00401350
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1b58]
call fcn.00408840
push str.net_start_ywSMPASvr
lea eax, [ebp - 0x10fc]
push eax
call fcn.004052a0
add esp, 8
lea ecx, [ebp - 0x1b74]
push ecx
lea ecx, [ebp - 0x10fc]
call fcn.004048a0
mov dword [ebp - 0x1bcc], eax
mov edx, dword [ebp - 0x1bcc]
mov dword [ebp - 0x1bd0], edx
mov byte [ebp - 4], 0x1e
push 0x20
push 0
push 0
mov ecx, dword [ebp - 0x1bd0]
call fcn.00408250
push eax
lea ecx, [ebp - 0x35]
call fcn.0040f2a0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1b74]
call fcn.00408840
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x19a4]
call fcn.00401060
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10fc]
call fcn.004055a0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34]
call fcn.004010e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1118]
call fcn.00408840
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1058]
call fcn.00408840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret 0xc