Function at 0x10001180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
test edi, edi
je 0x100013b7
push esi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.java
lea edx, [ebp - 0x108]
push edx
call esi
test eax, eax
je 0x100013b6
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x100013b6
cmp dword [0x10057d78], 0
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push ebx
jne 0x100012ae
push 0x10047f00
push edi
call esi
test eax, eax
je 0x100012ae
call fcn.10019e20
test eax, eax
je 0x100012ae
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], eax
test eax, eax
je 0x10001287
lea ecx, [eax + eax]
test ecx, ecx
je 0x10001270
lea ebx, [ecx + 0x13]
and ebx, 0xfffffff0
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000126d
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x10001287
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push esi
push 0x10019ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013b5
lea ecx, [ebp + 8]
push ecx
jmp 0x10001396
push str.serverkey.dat
push edi
call esi
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
je 0x1000135b
cmp dword [0x10057fb0], edx
jne 0x1000135b
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
mov dword [0x10057fb0], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000133b
lea ecx, [eax + eax]
test ecx, ecx
je 0x10001324
lea ebx, [ecx + 0x13]
and ebx, 0xfffffff0
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10001321
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x1000133b
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push esi
push 0x1001d540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013b5
lea ecx, [ebp + 8]
push ecx
jmp 0x10001396
call fcn.1001ead0
test eax, eax
je 0x100013b5
mov edx, dword [ebp + 8]
push edi
push edx
call fcn.1001e920
test eax, eax
je 0x100013b5
push edi
call fcn.100194a0
push 0
push 0
push eax
push 0x1001eb60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013b5
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100013b5
test byte [ebp + 8], 2
jne 0x100013b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4