Function at 0x100013c0
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.ntdll.dll_memset
add esp, 0xc
test edi, edi
je 0x100015f6
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 0x100015f5
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x100015f5
cmp dword [0x10056220], 0
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push ebx
jne 0x100014ee
push 0x100489d0
push edi
call esi
test eax, eax
je 0x100014ee
call fcn.100164c0
test eax, eax
je 0x100014ee
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 0x100014c7
lea ecx, [eax + eax]
test ecx, ecx
je 0x100014b0
lea ebx, [ecx + 0x13]
mov ecx, dword [0x10054278]
and ebx, 0xfffffff0
push ebx
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100014ad
push ebx
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x100014c7
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 0x10016560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100015f4
lea edx, [ebp + 8]
push edx
jmp 0x100015d5
push str.serverkey.dat
push edi
call esi
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
je 0x1000159a
cmp dword [0x10056520], ecx
jne 0x1000159a
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
mov dword [0x10056520], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000157a
lea ecx, [eax + eax]
test ecx, ecx
je 0x10001563
mov eax, dword [0x10054278]
lea ebx, [ecx + 0x13]
and ebx, 0xfffffff0
push ebx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10001560
push ebx
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
test esi, esi
je 0x1000157a
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 0x10019b80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100015f4
lea ecx, [ebp + 8]
push ecx
jmp 0x100015d5
call fcn.1001a9c0
test eax, eax
je 0x100015f4
mov edx, dword [ebp + 8]
push edi
push edx
call fcn.1001a7e0
test eax, eax
je 0x100015f4
push edi
call fcn.10015a10
push 0
push 0
push eax
push 0x1001aa50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100015f4
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100015f4
test byte [ebp + 8], 2
jne 0x100015f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4