Function at 0x40a900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4380e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov eax, dword [edi + 0x1c]
push eax
call fcn.004346c2
push 0x190
mov dword [esp + 0x30], 0
call fcn.0042efb1
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 1
je 0x40a958
push 0
mov ecx, eax
call fcn.0040e920
mov esi, eax
jmp 0x40a95a
xor esi, esi
mov ecx, dword [edi + 4]
push esi
mov byte [esp + 0x30], 0
call fcn.0040c7f0
test eax, eax
jne 0x40a99a
test esi, esi
je 0x40a978
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00434734
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.004054a0
test esi, esi
je 0x40a9b3
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push ebx
push ebp
call fcn.0041de5f
mov ebp, eax
and ebp, 0x80000003
jns 0x40a9c9
dec ebp
or ebp, 0xfffffffc
inc ebp
mov eax, dword [edi + 0x30]
xor esi, esi
mov dword [esp + 0x14], eax
inc eax
test eax, eax
mov dword [esp + 0x10], ebp
jl 0x40aba3
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40a9eb
mov ebp, dword [esp + 0x10]
mov ecx, edi
call fcn.00404e50
test eax, eax
jne 0x40aba3
xor edx, edx
test ebp, ebp
jne 0x40aa66
mov eax, dword [edi + 0x34]
lea ebp, [edi + 0x54]
imul eax, esi
div dword [edi + 0x30]
test ebp, ebp
jne 0x40aa14
xor ecx, ecx
jmp 0x40aa17
mov ecx, dword [ebp + 4]
push 0xcc0020
push eax
push 0
push ecx
push 1
push esi
push eax
mov eax, dword [esp + 0x38]
push 0
push eax
call ebx
mov eax, dword [edi + 0x34]
xor edx, edx
imul eax, esi
div dword [edi + 0x30]
inc eax
test ebp, ebp
jne 0x40aa4f
push 0xcc0020
push ebp
push esi
push ebp
push eax
push 1
push ebp
push esi
jmp 0x40ab80
mov ebp, dword [ebp + 4]
push 0xcc0020
push 0
push esi
push ebp
push eax
push 1
push 0
push esi
jmp 0x40ab80
cmp ebp, 1
jne 0x40aacb
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
imul eax, esi
div ecx
lea edx, [edi + 0x54]
sub ecx, esi
test edx, edx
je 0x40aa82
mov edx, dword [edx + 4]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x2c]
push 1
push esi
push eax
push ecx
push edx
call ebx
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
imul eax, esi
xor edx, edx
mov ebp, ecx
div ecx
sub ebp, esi
lea ecx, [edi + 0x54]
inc eax
test ecx, ecx
je 0x40aab2
mov ecx, dword [ecx + 4]
push 0xcc0020
push 0
push ebp
push ecx
push eax
mov eax, dword [esp + 0x30]
push 1
push 0
push ebp
push eax
jmp 0x40ab85
mov ecx, dword [edi + 0x34]
mov eax, ecx
imul eax, esi
cmp ebp, 2
jne 0x40ab2c
div dword [edi + 0x30]
lea ebp, [edi + 0x54]
sub ecx, eax
test ebp, ebp
jne 0x40aae8
xor eax, eax
jmp 0x40aaeb
mov eax, dword [ebp + 4]
push 0xcc0020
push ecx
push 0
push eax
push 1
push esi
push ecx
mov ecx, dword [esp + 0x38]
push 0
push ecx
call ebx
mov ecx, dword [edi + 0x34]
xor edx, edx
mov eax, ecx
imul eax, esi
div dword [edi + 0x30]
sub ecx, eax
inc eax
test ebp, ebp
je 0x40ab18
mov ebp, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push ecx
push esi
push ebp
push eax
push 1
push ecx
push esi
push edx
jmp 0x40ab85
mov ebp, dword [edi + 0x30]
div ebp
lea edx, [edi + 0x54]
sub ecx, eax
mov eax, ebp
sub eax, esi
test edx, edx
je 0x40ab41
mov edx, dword [edx + 4]
push 0xcc0020
push ecx
push eax
push edx
push 1
push esi
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebx
mov ecx, dword [edi + 0x34]
mov ebp, dword [edi + 0x30]
mov eax, ecx
xor edx, edx
imul eax, esi
div ebp
sub ebp, esi
lea edx, [edi + 0x54]
sub ecx, eax
inc eax
test edx, edx
je 0x40ab73
mov edx, dword [edx + 4]
push 0xcc0020
push ecx
push ebp
push edx
push eax
push 1
push ecx
push ebp
mov ecx, dword [esp + 0x3c]
push ecx
call ebx
mov ebp, dword [esp + 0x14]
inc esi
mov ecx, edi
lea edx, [ebp + 2]
push edx
push esi
call fcn.004056b0
lea eax, [ebp + 1]
cmp esi, eax
jle 0x40a9e7
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.00434734
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret