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

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
sub esp, 0x40
test edx, edx
push ebp
mov ebp, ecx
jle 0x5e5440
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 4], eax
jle 0x5e5440
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x20]
cmp edi, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
jle 0x5e543e
cmp eax, ecx
jle 0x5e543e
cmp dword [ebp + 0x8c], 0
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x58], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
je 0x5e5216
cmp dword [ebp + 0xc4], 0
je 0x5e51e1
cmp edx, dword [ebp + 0xb4]
jne 0x5e51e1
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0xb8]
je 0x5e51f3
mov ecx, ebp
call fcn.005e47e0
mov ecx, ebp
call fcn.005e5020
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x5e5216
neg ecx
push ecx
neg ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0x58]
push 3
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp byte [ebp + 0xb2], 0
je 0x5e5252
mov edx, dword [ebp + 0xd0]
mov ebx, dword [ebp + 0xd4]
mov eax, dword [ebp + 0xd8]
mov ecx, dword [ebp + 0xdc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x5e5271
mov edx, dword [ebp + 0x1ec]
mov eax, dword [ebp + 0x1e8]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x40]
call fcn.00433890
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x5e52ae
bswap eax
shr eax, 8
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push 0
push 0x62aa66
lea ecx, [esp + 0x2c]
push ecx
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x5e53d7
cmp byte [ebp + 0x21a], 0
lea ecx, [esp + 0x30]
je 0x5e5447
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
sub edi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
and esi, 3
call fcn.00447f30
mov ecx, eax
shl eax, 0x10
cdq
idiv edi
add ecx, 1
shl ecx, 0x10
and ecx, 0xfffe0000
sub ecx, 1
mov dword [esp + 0x5c], ecx
xor ecx, ecx
cmp esi, 2
sete cl
xor edx, edx
cmp esi, 3
setne dl
shl ebx, 0x10
mov esi, ecx
add edx, 1
mov dword [esp + 0x1c], edx
imul esi, eax
imul edx, eax
add esi, ebx
mov ebx, eax
shr ebx, 1
add esi, ebx
cmp ecx, edi
mov dword [esp + 0x18], edx
mov ebx, ecx
jge 0x5e53cf
lea ecx, [esp + 0x30]
call fcn.00447f20
mov dword [esp + 0x10], eax
nop
test bl, 1
je 0x5e5371
cmp esi, 0x8000
jae 0x5e535d
xor ecx, ecx
shr ecx, 0x10
mov eax, ecx
xor eax, ebx
and eax, 1
xor eax, ecx
jmp 0x5e5387
lea ecx, [esi - 0x8000]
shr ecx, 0x10
mov eax, ecx
xor eax, ebx
and eax, 1
xor eax, ecx
jmp 0x5e5387
mov ecx, dword [esp + 0x5c]
lea eax, [esi + 0x8000]
cmp eax, ecx
jbe 0x5e5381
mov eax, ecx
shr eax, 0x10
and eax, 0xfffffffe
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x94]
push 0xcc0020
push 1
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push ecx
push 1
push edx
mov edx, dword [esp + 0x40]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
add ebx, dword [esp + 0x1c]
add esi, dword [esp + 0x18]
cmp ebx, edi
jl 0x5e5340
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
cmp dword [ebp + 0x8c], 0
je 0x5e540a
lea ebx, [ebp + 0x220]
push esi
mov ecx, ebx
call fcn.005e4000
test al, al
je 0x5e540a
mov ebp, dword [ebp + 0x8c]
mov eax, dword [ebp]
mov edx, dword [eax + 8]
push ebx
mov ecx, ebp
call edx
mov ecx, ebx
call fcn.005e4050
mov edx, dword [esp + 0x54]
cmp esi, edx
je 0x5e543d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x50]
push esi
sub eax, ecx
push eax
mov eax, dword [esp + 0x54]
sub edi, eax
push edi
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x40
ret 0xc
push 0xcc0020
call fcn.00447f30
push eax
lea ecx, [esp + 0x38]
call fcn.00447f20
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x94]
push eax
mov eax, dword [esp + 0x30]
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x5e53d7