Function at 0x1001c050
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 [0x1005d804]
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.1001c70e
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 0x1001c0af
mov ecx, dword [edi + 0x3c]
lea eax, [ecx - 0x40]
cmp eax, 0x3bf
ja 0x1001c0af
cmp dword [ecx + edi], 0x4550
je 0x1001c0b2
dec edi
jmp 0x1001c094
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 0x1001c1dc
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 0x1001c0ee
add ecx, 0xffffffe0
add edx, 0xffff
add ecx, edi
inc esi
test dx, dx
jne 0x1001c0e0
cmp ecx, 0x6a4abc5b
jne 0x1001c1b7
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 0x1001c130
cmp eax, 0xec0e4e8e
je 0x1001c156
cmp eax, 0x7c0dfcaa
je 0x1001c156
cmp eax, 0x91afca54
jne 0x1001c1a0
mov ecx, dword [esp + 0x10]
movzx edx, word [ebx]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
cmp eax, 0xec0e4e8e
jne 0x1001c175
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x24], eax
jmp 0x1001c19a
cmp eax, 0x7c0dfcaa
jne 0x1001c187
mov eax, dword [ecx + esi]
add eax, esi
mov dword [esp + 0x18], eax
jmp 0x1001c19a
cmp eax, 0x91afca54
jne 0x1001c19a
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 0x1001c127
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
je 0x1001c1c9
test ebx, ebx
je 0x1001c1c9
cmp dword [esp + 0x20], 0
jne 0x1001c1d8
mov ebp, dword [ebp]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x1001c0d0
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 0x10055654
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 0x1001c26e
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 0x1001c260
movzx edi, word [ebx + 0x14]
add edi, ebx
movzx ebx, word [ebx + 6]
test ebx, ebx
je 0x1001c2bc
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 0x1001c2b5
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x1001c2a5
add edi, 0x28
test ebx, ebx
jne 0x1001c280
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 0x1001c365
cmp dword [ebx], 0
je 0x1001c365
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 0x1001c34b
nop word [eax + eax]
test esi, esi
je 0x1001c326
mov ecx, dword [esi]
test ecx, ecx
jns 0x1001c326
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 0x1001c333
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 0x1001c300
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 0x1001c2d6
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 0x1001c43e
mov ecx, dword [edx + 0xa0]
add ecx, ebp
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x1001c43e
nop dword [eax]
mov esi, dword [ecx]
lea ebx, [eax - 8]
add esi, ebp
shr ebx, 1
lea ebp, [ecx + 8]
je 0x1001c425
nop
movzx edx, word [ebp]
dec ebx
mov ax, dx
mov ecx, edx
shr ax, 0xc
cmp ax, 0xa
jne 0x1001c3df
and edx, 0xfff
add dword [edx + esi], edi
jmp 0x1001c417
cmp ax, 3
jne 0x1001c3f0
and ecx, 0xfff
add dword [ecx + esi], edi
jmp 0x1001c417
cmp ax, 1
jne 0x1001c407
and ecx, 0xfff
mov eax, edi
shr eax, 0x10
add word [ecx + esi], ax
jmp 0x1001c417
cmp ax, 2
jne 0x1001c417
and ecx, 0xfff
add word [ecx + esi], di
add ebp, 2
test ebx, ebx
jne 0x1001c3c0
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 0x1001c3b0
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x28]
mov dword [0x1005e168], ebp
add edi, ebp
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + ebp + 0xc0]
test esi, esi
je 0x1001c476
mov esi, dword [esi + ebp + 0xc]
test esi, esi
je 0x1001c476
mov eax, dword [esi]
test eax, eax
je 0x1001c476
push 0
push 1
push ebp
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x1001c465
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x1c], 0
jne 0x1001c4cb
push dword [ebx + 4]
push ebp
call fcn.1001bf10
mov esi, eax
add esp, 8
test esi, esi
je 0x1001c4d4
cmp dword [ebx + 0x20], 0
je 0x1001c4a1
push ebp
call fcn.1001bfe0
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.1001c717
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.1001c717
add esp, 0x50
ret