Function at 0x10001170
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 0x100013a7
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 0x100013a6
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x100013a6
cmp dword [0x1005a058], 0
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push ebx
jne 0x1000129e
push 0x10049f20
push edi
call esi
test eax, eax
je 0x1000129e
call fcn.1001af10
test eax, eax
je 0x1000129e
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 0x10001277
lea ecx, [eax + eax]
test ecx, ecx
je 0x10001260
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 0x1000125d
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x10001277
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 0x1001afc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013a5
lea ecx, [ebp + 8]
push ecx
jmp 0x10001386
push str.serverkey.dat
push edi
call esi
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
je 0x1000134b
cmp dword [0x1005a290], edx
jne 0x1000134b
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
mov dword [0x1005a290], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000132b
lea ecx, [eax + eax]
test ecx, ecx
je 0x10001314
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 0x10001311
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x1000132b
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 0x1001e630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013a5
lea ecx, [ebp + 8]
push ecx
jmp 0x10001386
call fcn.1001fc10
test eax, eax
je 0x100013a5
mov edx, dword [ebp + 8]
push edi
push edx
call fcn.1001fa20
test eax, eax
je 0x100013a5
push edi
call fcn.1001a520
push 0
push 0
push eax
push 0x1001fca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100013a5
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100013a5
test byte [ebp + 8], 2
jne 0x100013a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4