Function at 0x10051810
Capabilities:
Create thread
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1017ac96
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x101ce00c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce00c]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [esp + 0x130]
mov ebx, dword [esp + 0x114]
mov esi, dword [esp + 0x118]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], eax
xor ebp, ebp
mov byte [eax], 0
mov eax, eax
mov edi, 1
mov dword [esp + 0x7c], edi
xchg ebx, eax
xchg ebx, eax
push 0x10181a24
push esi
call fcn.101186e0
add esp, 8
test eax, eax
je 0x100518a9
push 0x10181af8
push esi
call fcn.101186e0
add esp, 8
test eax, eax
jne 0x100518a9
xor edi, edi
mov dword [esp + 0x7c], edi
test ah, ah
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x108], 1
test edi, edi
cmp edi, ebp
je 0x10051bb7
mov eax, dword [esp + 0x110]
cmp dword [eax + 0x32bc], ebp
je 0x100518e1
mov edi, ebx
mov dword [esp + 0x74], ebx
jmp 0x100518fe
mov dword [esp + 0x20], ebp
nop
lea ecx, [esp + 0x20]
push ecx
push ebx
call fcn.1006a6f0
add esp, 8
mov edi, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x74], edi
test eax, 0x56cf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
test dh, dh
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov al, al
mov bl, 0x49
mov dl, 0x36
mov cl, 0x34
mov al, 0x78
mov byte [esp + 0x84], 0x25
mov byte [esp + 0x85], bl
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], cl
mov byte [esp + 0x88], al
mov byte [esp + 0x89], 0x2d
mov byte [esp + 0x8a], 0x25
mov byte [esp + 0x8b], bl
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], cl
mov byte [esp + 0x8e], al
mov byte [esp + 0x8f], 0
nop
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
push ecx
push esi
call fcn.1011a25d
add esp, 0x10
test eax, 0x25b8
push edi
call fcn.1006ecd0
add esp, 4
test eax, 0x5c95
test al, al
mov esi, dword [esp + 0x30]
je 0x10051a04
cmp esi, 0x80000000
ja 0x10051e3a
mov eax, dword [esp + 0x2c]
jb 0x100519c8
cmp eax, ebp
jae 0x10051e3a
mov edx, dword [esp + 0x28]
cmp esi, edx
ja 0x10051e3a
mov ecx, dword [esp + 0x24]
jb 0x100519e2
cmp eax, ecx
ja 0x10051e3a
cmp edx, 0x80000000
jb 0x10051a59
ja 0x100519f0
cmp ecx, ebp
jb 0x10051a59
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], SysReAllocString
test dl, dl
jmp 0x10051a51
cmp esi, ebp
ja 0x10051e3a
mov eax, dword [esp + 0x2c]
jb 0x10051a1d
cmp eax, 0x80000000
jae 0x10051e3a
mov edx, dword [esp + 0x28]
cmp esi, edx
ja 0x10051e3a
mov ecx, dword [esp + 0x24]
jb 0x10051a37
cmp eax, ecx
ja 0x10051e3a
cmp edx, ebp
ja 0x10051a43
cmp ecx, 0x80000000
jb 0x10051a59
mov dword [esp + 0x24], SysReAllocString
mov dword [esp + 0x28], ebp
test bl, bl
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ebp, eax
test edi, edi
cmp esi, dword [esp + 0x28]
ja 0x10051d97
jb 0x10051a73
cmp ebp, dword [esp + 0x24]
jae 0x10051d97
mov ebx, dword [esp + 0x74]
mov ecx, ecx
mov dh, dh
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x80]
push eax
push esi
push ebp
push ebx
call fcn.1006f9b0
add esp, 0x24
test eax, eax
je 0x10051d97
push 0x3f
lea ecx, [esp + 0xc1]
push 0
push ecx
mov byte [esp + 0xc8], 0
call fcn.10118770
add esp, 0xc
mov al, al
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x70]
adc eax, dword [esp + 0x68]
add ecx, 0xffffffff
adc eax, 0xffffffff
test cl, cl
mov edx, dword [esp + 0x28]
cmp eax, edx
jb 0x10051afa
mov edi, dword [esp + 0x24]
ja 0x10051af4
cmp ecx, edi
jbe 0x10051afa
mov ecx, edi
mov eax, edx
mov ebx, ebx
push eax
push ecx
push esi
push ebp
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.10119287
add esp, 0x18
test ah, ah
lea ecx, [esp + 0x63]
push ecx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0xa4]
call fcn.10003d50
mov byte [esp + 0x108], 2
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
lea ecx, [esp + 0x63]
lea edx, [esp + 0x9c]
je 0x10051b60
push ecx
push edx
push eax
call fcn.1004fc40
add esp, 0xc
add dword [esp + 0x18], 0x18
jmp 0x10051b70
push 1
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.10051750
mov byte [esp + 0x108], 1
lea ecx, [esp + 0x9c]
call fcn.10001dc0
xchg ebx, eax
xchg ebx, eax
mov ebp, dword [esp + 0x6c]
add ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x70]
adc esi, dword [esp + 0x68]
mov ecx, ecx
cmp esi, dword [esp + 0x28]
jb 0x10051a77
ja 0x10051d97
cmp ebp, dword [esp + 0x24]
jb 0x10051a77
jmp 0x10051d97
mov edi, esi
mov ebx, ebx
mov dh, dh
jmp 0x10051bc2
xor ebp, ebp
xor eax, eax
mov byte [esp + 0x9c], 0
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov word [esp + 0xb9], ax
mov byte [esp + 0xbb], al
mov edx, edx
push 0x10181a24
push edi
call fcn.101186e0
add esp, 8
mov ebx, eax
test ah, ah
cmp ebx, ebp
je 0x10051c3c
sub eax, edi
push eax
lea ecx, [esp + 0xa0]
push edi
push ecx
call fcn.1011a620
add esp, 0xc
push edx
pop edx
jmp 0x10051c55
lea edx, [esp + 0x9c]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x10051c47
test dl, dl
lea edi, [ebx + 1]
test dh, dh
lea edx, [esp + 0x84]
mov eax, edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov byte [esp + 0x108], 3
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10051c83
sub eax, edx
lea ebp, [esp + eax + 0x9c]
mov esi, ebp
lea ecx, [esp + 0x9c]
sub esi, ecx
lea eax, [esi + 1]
cmp eax, 0xffffffff
mov dword [esp + 0x74], eax
ja 0x100521c6
test eax, eax
jbe 0x100521c6
cmp eax, 0x10
jbe 0x10051ced
lea edx, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0xa0]
call fcn.100035b0
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x74]
lea edx, [eax + ecx]
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], edx
jmp 0x10051cf4
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x9c]
cmp ebp, ecx
je 0x10051d0e
push esi
mov edx, ecx
push edx
push eax
call fcn.10119900
add esp, 0xc
add eax, esi
mov dword [esp + 0x94], eax
mov byte [eax], 0
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
je 0x10051d5c
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x108], 5
test eax, eax
je 0x10051d4d
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.10003dd0
mov byte [esp + 0x108], 4
add dword [esp + 0x18], 0x18
jmp 0x10051d77
push 1
push 1
lea edx, [esp + 0x6b]
push edx
lea ecx, [esp + 0x90]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.10051750
mov byte [esp + 0x108], 1
lea ecx, [esp + 0x84]
call fcn.10001dc0
mov eax, eax
test ebx, ebx
jne 0x10051bc0
xchg ebx, eax
xchg ebx, eax
test ch, ch
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ah, ah
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov dword [esp + 0x2c], ebp
test eax, 0x5c2c
mov esi, esi
mov ebx, dword [esp + 0x50]
cmp ebp, ebx
jae 0x10051ddf
mov ebx, ebp
mov dword [esp + 0x20], ebp
test eax, 0x66ca
jmp 0x10051de5
mov dword [esp + 0x20], ebx
test bh, bh
cmp ebx, 0x40
jl 0x10051df5
mov ebx, 0x40
mov dword [esp + 0x20], ebx
test dl, dl
lea edi, [ebx*4]
push edi
call fcn.10117b2c
add esp, 4
mov dword [esp + 0x34], eax
test edi, edi
test eax, eax
je 0x10051e3a
lea esi, [ebx + ebx*4]
add esi, esi
add esi, esi
add esi, esi
push esi
call fcn.10117b2c
add esp, 4
mov dword [esp + 0x38], eax
test ecx, ecx
test eax, eax
jne 0x10051e78
mov eax, dword [esp + 0x34]
push eax
call fcn.10117bef
add esp, 4
test esi, esi
mov dword [esp + 0x108], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10051450
xor eax, eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.101180ca
add esp, 0xf8
ret
mov ecx, dword [esp + 0x34]
push edi
push 0
push ecx
call fcn.10118770
add esp, 0xc
push ecx
pop ecx
mov edx, dword [esp + 0x38]
push esi
push 0
push edx
call fcn.10118770
add esp, 0xc
test ecx, ecx
xor edi, edi
mov esi, esi
mov eax, ebp
xor edx, edx
div ebx
mov dword [esp + 0x6c], eax
test ecx, ecx
mov eax, dword [esp + 0x134]
xor edx, edx
div ebx
mov dword [esp + 0x64], eax
mov bl, bl
mov eax, eax
xor ebp, ebp
test ebx, ebx
jle 0x10052068
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x74], eax
add esi, 0xc
mov eax, eax
mov ecx, dword [esp + 0x6c]
lea ebx, [edi + ecx - 1]
test edx, edx
mov eax, dword [esp + 0x20]
add eax, 0xffffffff
cmp ebp, eax
jne 0x10051ef8
mov ebx, dword [esp + 0x2c]
add ebx, 0xffffffff
mov ah, ah
mov edx, dword [esp + 0x7c]
mov eax, ebx
push edx
sub eax, edi
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
lea edx, [esp + 0x90]
call fcn.100503f0
add esp, 0xc
mov byte [esp + 0x108], 6
mov al, al
mov edx, dword [esp + 0x110]
lea edi, [esi - 0xc]
mov dword [edi], edx
mov edx, edx
mov eax, dword [esp + 0x80]
mov dword [esi - 8], eax
test eax, eax
mov ecx, dword [esp + 0x11c]
mov dword [esi], ecx
test eax, 0x53b8
mov edx, dword [esp + 0x120]
mov dword [esi + 4], edx
test edi, edi
mov eax, dword [esp + 0x124]
mov dword [esi + 8], eax
mov ebx, ebx
mov ecx, dword [esp + 0x128]
mov dword [esi + 0xc], ecx
test esi, esi
mov edx, dword [esp + 0x12c]
mov dword [esi + 0x10], edx
mov dh, dh
mov eax, dword [esp + 0x74]
mov dword [esi + 0x14], eax
test ch, ch
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x18], ecx
test edx, edx
mov edx, dword [esp + 0x94]
sub edx, dword [esp + 0x98]
add edx, 1
push edx
call fcn.10117b2c
add esp, 4
mov dword [esi - 4], eax
mov eax, eax
mov eax, dword [esi - 4]
test eax, eax
je 0x10052046
mov edx, dword [esp + 0x98]
mov cl, byte [edx]
mov byte [eax], cl
add edx, 1
add eax, 1
test cl, cl
jne 0x10051fc0
mov ebp, ebp
call fcn.10041aa0
mov dword [esp + 0x24], eax
mov edx, edx
mov al, al
push 0
push 0
push edi
push 0x1004dbf0
push 0
push 0
call fcn.1011a147
add esp, 0x18
test edi, edi
mov edi, dword [esp + 0x34]
mov dword [edi + ebp*4], eax
push edx
pop edx
mov eax, dword [esp + 0x24]
push eax
call fcn.10041b60
add esp, 4
mov cl, cl
cmp dword [edi + ebp*4], 0
je 0x1005204c
lea edi, [ebx + 1]
mov al, al
mov byte [esp + 0x108], 1
lea ecx, [esp + 0x84]
call fcn.10001dc0
mov ecx, dword [esp + 0x64]
add dword [esp + 0x74], ecx
add ebp, 1
add esi, 0x28
cmp ebp, dword [esp + 0x20]
jl 0x10051ed8
jmp 0x10052064
xor ebp, ebp
mov bl, bl
jmp 0x10052050
xor ebp, ebp
push edx
pop edx
mov byte [esp + 0x108], 1
lea ecx, [esp + 0x84]
call fcn.10001dc0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x78]
xor edi, edi
mov bh, bh
cmp ebp, ebx
jne 0x1005212b
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, 0x5b23
cmp eax, 0xffffffff
je 0x1005212b
xor ebp, ebp
nop
test ebx, ebx
jle 0x10052121
mov ecx, dword [esp + 0x38]
lea eax, [edi + edi*4]
mov edx, dword [ecx + eax*8 + 0x20]
cmp byte [edx], 0
lea eax, [ecx + eax*8 + 0x20]
je 0x10052111
test edi, edi
jle 0x100520fb
cmp byte [esi], 0
je 0x100520c9
mov byte [esi + ebp], 0x7c
mov ah, ah
add ebp, 1
test bl, bl
mov edx, dword [eax]
mov eax, dword [esp + 0x78]
add eax, ebp
mov esi, eax
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
test cl, cl
jne 0x100520d3
mov cl, cl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100520e6
sub eax, edx
add ebp, eax
mov bh, bh
mov esi, dword [esp + 0x78]
jmp 0x1005211a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10052100
sub eax, edx
mov ebp, eax
mov al, al
jmp 0x1005211a
test edi, edi
jne 0x1005211a
mov byte [esi], 0
test dl, dl
add edi, 1
cmp edi, ebx
jl 0x100520a1
mov edi, 1
test eax, 0x55a3
mov ebp, dword [esp + 0x34]
xor esi, esi
test ebx, ebx
jle 0x10052168
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x10052161
push eax
call fcn.10067a30
add esp, 4
mov edx, edx
mov ecx, dword [ebp + esi*4]
push ecx
call fcn.100c4320
add esp, 4
mov al, al
mov dword [ebp + esi*4], 0
test eax, eax
add esi, 1
cmp esi, ebx
jl 0x10052135
push ebp
call fcn.10117bef
add esp, 4
mov cl, cl
test ebx, ebx
jle 0x10052199
mov esi, dword [esp + 0x38]
add esi, 8
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x10052191
push eax
call fcn.10117bef
add esp, 4
test edi, edi
add esi, 0x28
sub ebx, 1
jne 0x10052180
mov edx, dword [esp + 0x38]
push edx
call fcn.10117bef
add esp, 4
test eax, 0x21d2
mov dword [esp + 0x108], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10051450
mov eax, edi
jmp 0x10051e50
push 0x10181a0c
call fcn.10106a30
int3