Function at 0x300a0f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push ebp
mov ebp, dword [esp + 0x90]
mov eax, dword [ebp + 0x20]
test eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x300a1327
mov esi, dword [eax]
test esi, esi
je 0x300a1327
push ebp
lea ecx, [esp + 0x48]
call fcn.30031160
mov eax, dword [ebp]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x58]
test al, al
jne 0x300a12f7
mov al, byte [ebp + 0x1c]
test al, al
je 0x300a1011
mov eax, dword [ebp + 4]
test eax, eax
je 0x300a1007
mov ebx, dword [esi + 0x40]
push 0
push 0
push 0x3029a680
mov ecx, esi
mov edi, 1
call fcn.300e39c0
test eax, eax
jl 0x300a0ffa
cmp eax, ebx
jge 0x300a0fff
push 0
inc edi
inc eax
push eax
push 0x3029a680
mov ecx, esi
call fcn.300e39c0
test eax, eax
jge 0x300a0fe1
mov edi, 1
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], edi
jmp 0x300a1011
mov eax, dword [esi + 0x40]
inc eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x2c]
add eax, 0x1f8
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0xc]
mov al, byte [esp + 0x9c]
test al, 8
mov dword [esp + 0x2c], edx
je 0x300a10b3
mov ecx, dword [esi + 0x54]
mov ebx, dword [esi + 0x40]
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.300d72c0
mov eax, dword [esi + 0x44]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x300a10b0
mov eax, dword [ebp + 4]
test eax, eax
mov ecx, esi
je 0x300a107b
push 0
push edi
push 0x3029a680
call fcn.300e39c0
push eax
mov ecx, esi
jmp 0x300a107c
push edi
call fcn.300f14a0
mov eax, dword [esi + 0x54]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.300d72c0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, ecx
push eax
call fcn.30079280
mov eax, dword [esi + 0x44]
add esp, 0x1c
inc edi
cmp edi, eax
jl 0x300a1060
push ebx
jmp 0x300a10f0
test al, 0x10
jne 0x300a10f7
push 0
push 0xffffffffffffffff
push 0x3029a67c
mov ecx, esi
call fcn.300e39c0
test eax, eax
jl 0x300a10f7
mov edi, dword [esi + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.300f14a0
mov edx, dword [esi + 0x54]
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.300d72c0
add esp, 0x10
push edi
mov ecx, esi
call fcn.300f14a0
mov ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x18]
mov dword [esp + 0x1c], ebx
jg 0x300a12e3
dec ebx
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov eax, dword [ebp + 4]
test eax, eax
mov edi, ebx
je 0x300a1155
push 0
push 0
push 0x3029a680
mov ecx, esi
call fcn.300e39c0
test ebx, ebx
mov edi, eax
je 0x300a114d
mov ebp, ebx
push 0
inc edi
push edi
push 0x3029a680
mov ecx, esi
call fcn.300e39c0
dec ebp
mov edi, eax
jne 0x300a1131
mov ebp, dword [esp + 0x98]
test edi, edi
jl 0x300a12e3
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x300a12dc
mov al, byte [esp + 0x58]
test al, al
jne 0x300a12f7
mov eax, dword [ebp + 4]
test eax, eax
mov ecx, esi
push 1
jle 0x300a1188
push edi
jmp 0x300a1189
push ebx
call fcn.300f1130
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x54]
mov ebx, dword [esp + 0x9c]
shr ecx, 4
and ecx, 1
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x54]
or ecx, 0x10
test bl, 0x10
mov dword [eax + 0x54], ecx
je 0x300a11c8
mov eax, dword [esi + 0x54]
push 0
push 0
lea edx, [esp + 0x28]
push edx
push eax
call fcn.300d72c0
add esp, 0x10
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov al, bl
shr ebx, 5
shr al, 5
not bl
and al, 1
and bl, 1
xor edi, edi
xor ebp, ebp
test al, al
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
je 0x300a122a
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x620]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x5c]
push edx
push esi
push eax
call fcn.300a0ca0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
add esp, 0x24
test bl, bl
je 0x300a127d
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x620]
push ebx
xor eax, eax
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xc], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x6c]
push edx
push esi
push eax
call fcn.300a0e10
add esp, 0x34
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x54]
test eax, eax
mov eax, dword [ecx + 0x54]
je 0x300a1290
or eax, 0x10
jmp 0x300a1293
and eax, 0xffffffef
mov dword [ecx + 0x54], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x300a12dc
mov al, byte [esp + 0x58]
test al, al
jne 0x300a12f7
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x18]
inc eax
inc edi
cmp eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
jg 0x300a12e3
mov ebx, edi
mov ebp, ecx
jmp 0x300a1110
mov byte [esp + 0x58], 1
jmp 0x300a12f7
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.300f6000
push 2
mov ecx, edi
call fcn.3010b5e0
test byte [esi + 0x28], 2
mov ecx, esi
je 0x300a1314
mov edx, dword [esp + 0x18]
push edx
call fcn.300f14a0
push 0
mov ecx, esi
call fcn.300f2e40
jmp 0x300a131e
mov eax, dword [esp + 0x18]
push eax
call fcn.300f14a0
lea ecx, [esp + 0x44]
call fcn.30031270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 8