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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x30], ecx
je 0x3002b4ad
mov dword [esi], edi
mov ebx, dword [0x30335004]
mov al, byte [ebx + 0x920]
test al, al
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], ebx
je 0x3002b6a3
mov esi, dword [esp + 0xb0]
push 6
push esi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ebp, eax
mov eax, dword [ebx + 0x928]
lea edx, [esp + 0x18]
push edx
push ebp
push esi
mov dword [esp + 0x24], 0
mov ecx, dword [eax]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
call dword [ecx + 0x1c]
test eax, eax
jne 0x3002b696
mov eax, dword [esp + 0xc0]
test eax, eax
jle 0x3002b679
jmp 0x3002b520
mov edi, dword [esp + 0x1c]
jmp 0x3002b520
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x38]
lea ebx, [eax + edi*2]
mov eax, dword [ecx + 0x928]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xcc]
sub ecx, edi
push ecx
push ebx
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x3002b679
mov eax, dword [esp + 0x14]
test eax, eax
je 0x3002b679
mov eax, dword [esp + 0x34]
test dword [esp + 0x18], eax
jne 0x3002b584
mov ecx, dword [esp + 0x30]
push ebp
push eax
push esi
call fcn.3002b3b0
mov edi, eax
test edi, edi
jne 0x3002b586
mov edi, ebp
mov eax, dword [esp + 0xcc]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
je 0x3002b5a7
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ebp, dword [esp + 0x40]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0xcc]
test edi, edi
je 0x3002b5ce
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], ecx
mov al, byte [esp + 0xc4]
test al, al
je 0x3002b5fc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
push 0
push edx
push ebx
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc8]
add ebx, eax
test ecx, ecx
mov dword [esp + 0xb4], ebx
je 0x3002b658
mov edx, dword [ecx]
add edx, eax
test edi, edi
mov dword [ecx], edx
je 0x3002b658
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ebp, ebx
mov eax, 0
sets al
dec eax
and eax, ebp
add eax, ecx
cmp dword [esp + 0x10], eax
jg 0x3002b658
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x20]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x3002b517
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x3002b696
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
add edx, ecx
mov dword [eax], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x20
mov al, byte [esp + 0xc4]
test al, al
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xb0]
je 0x3002b6e2
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
push 0
push edi
push ebx
push 0
push 0
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
test esi, esi
je 0x3002b681
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edi, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xcc]
add edi, edx
test eax, eax
mov dword [esi], edi
je 0x3002b696
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x3002b688
mov dword [esp + 0x10], ecx
jmp 0x3002b688