Function at 0x10009820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014f2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x54], 0x7f8a
mov dword [esi + 0x88], 0x1001624c
mov dword [ebp - 0x50], 0x7f00
mov dword [ebp - 0x4c], 0x7f03
mov dword [ebp - 0x48], 0x7f89
mov dword [ebp - 0x44], 0x7f8b
mov dword [ebp - 0x40], 0x7f01
mov dword [ebp - 0x3c], 0x7f81
mov dword [ebp - 0x38], 0x7f88
mov dword [ebp - 0x34], 0x7f80
mov dword [ebp - 0x30], 0x7f86
mov dword [ebp - 0x2c], 0x7f83
mov dword [ebp - 0x28], 0x7f85
mov dword [ebp - 0x24], 0x7f82
mov dword [ebp - 0x20], 0x7f84
mov dword [ebp - 0x1c], 0x7f04
mov dword [ebp - 0x18], 0x7f02
lea ebx, [ebp - 0x54]
lea edi, [esi + 0xcc]
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebx]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [0x1001b57c]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
add ebx, 4
add edi, 4
dec eax
mov dword [ebp - 0x10], eax
jne 0x100098cd
xor ebx, ebx
push str.GDI32.dll
mov dword [ebp - 4], ebx
mov dword [esi], 0x10016250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [ebp + 8]
mov dword [0x1001bde8], eax
lea eax, [edi - 1]
cmp eax, 0x1f
ja case.0x1000991a.2
xor ecx, ecx
mov cl, byte [eax + 0x10009b24]
jmp dword [ecx*4 + 0x10009b1c]
mov dword [esi + 0x70], edi
jmp 0x1000992d
mov dword [esi + 0x70], 8
mov ecx, esi
call fcn.1000a3b0
test al, al
jne 0x1000994e
call dword [0x1001b538]
push eax
mov dword [esi + 0x10c], eax
call dword [0x1001b53c]
mov dword [esi + 0x44], eax
mov dword [esi + 0x10], 0xcc0020
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, 0x3e8
xor edx, edx
div ecx
mov dl, byte [ebp + 0xc]
mov edi, dword [0x1001b544]
push ebx
mov dword [esi + 8], ecx
mov byte [esi + 0xc], dl
mov dword [esi + 0x18], eax
call edi
push 1
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
mov eax, 0x20
cdq
idiv dword [esi + 0x70]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x24], al
nop
nop
nop
mov eax, dword [0x1001bde8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateCompatibleDC
push eax
call ebx
mov ecx, dword [esi + 0x44]
mov edi, eax
push ecx
call edi
mov edx, dword [esi + 0x44]
mov dword [esi + 0x4c], eax
push edx
call edi
push 0
mov dword [esi + 0x80], eax
call edi
mov dword [esi + 0x48], eax
nop
nop
nop
push 0
call edi
push 0x30
mov dword [esi + 0x50], eax
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
call dword [sym.imp.MSVCRT.dll_putchar]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x70]
add esp, 4
push 1
push eax
push ecx
mov ecx, esi
call fcn.10009fe0
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x28]
push edx
push eax
push ecx
mov ecx, esi
call fcn.10009fe0
mov edx, dword [esi + 0x28]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x70]
push 1
push edx
push eax
mov ecx, esi
call fcn.10009fe0
mov dword [esi + 0x6c], eax
mov ecx, dword [0x1001bde8]
push str.CreateDIBSection
push ecx
call ebx
mov edi, eax
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
mov edx, dword [esi + 0x64]
add esp, 4
lea eax, [esi + 0x5c]
push 0
push 0
push eax
mov eax, dword [esi + 0x44]
push 0
push edx
push eax
call edi
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x44]
mov dword [esi + 0x54], eax
push 0
lea eax, [esi + 0x60]
push 0
push eax
push 0
push ecx
push edx
call edi
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x44]
mov dword [esi + 0x58], eax
push 0
lea eax, [esi + 0x78]
push 0
push eax
push 0
push ecx
push edx
call edi
mov dword [esi + 0x84], eax
mov eax, dword [0x1001bde8]
push str.SelectObject
push eax
call ebx
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x4c]
push ecx
mov edi, eax
push edx
call edi
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x48]
push eax
push ecx
call edi
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x80]
push edx
push eax
call edi
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push edx
push 0
lea eax, [esi + 0x34]
push 0
push eax
call dword [0x1001b540]
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx + 0x14]
shl edx, 1
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x68]
xor edx, edx
add esp, 4
mov eax, dword [eax + 0x14]
mov dword [esi + 0x20], 0
div dword [esi + 0x2c]
pop edi
mov dword [esi + 0x74], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
iretd
iretd