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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x50
mov ebp, ecx
mov ebx, dword [esp + 0x64]
movsx eax, byte [0x872598]
test eax, eax
jne 0x45ea9f
mov edx, dword [ebx + 0x20]
sub edx, dword [ebx + 0x10]
add edx, 1
mov dword [esp + 0x4c], edx
mov edi, dword [ebx + 0x28]
sub edi, dword [ebx + 0x18]
add edi, 1
mov ecx, dword [0x872350]
mov eax, dword [0x872354]
test edx, edx
jle 0x45ea9f
test edi, edi
jle 0x45ea9f
test ecx, ecx
jle 0x45ea9f
test eax, eax
jle 0x45ea9f
mov esi, dword [ebp]
test esi, esi
jne 0x45e895
movsx edx, byte [0x871f98]
test edx, edx
je 0x45e895
movsx edx, byte [0x871f9c]
test edx, edx
je 0x45e895
cmp byte [0x872280], 1
je 0x45eaa9
cmp byte [0x872284], 1
je 0x45eaa9
xor eax, eax
mov dword [0x8721fc], eax
mov dword [0x872200], eax
mov eax, dword [ebx + 0xc0]
call fcn.0045f0b0
test eax, eax
je 0x45e88b
movsx eax, byte [0x871f98]
test eax, eax
je 0x45e878
push 0x87cafc
push 0x8782b0
call fcn.00409070
add esp, 8
xor eax, eax
mov byte [0x871fe0], al
mov byte [0x59b768], 1
mov byte [0x871f98], al
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edx, dword [ebx + 0x88]
mov dword [ebp + 0x2c4], edx
mov edx, dword [ebx + 0x8c]
neg edx
mov dword [ebp + 0x2c8], edx
test esi, esi
jne 0x45e8d0
movsx edx, byte [0x872280]
cmp edx, 1
je 0x45eadc
cmp byte [0x872284], 1
je 0x45eadc
test esi, esi
jne 0x45e8e5
xor edx, edx
mov dword [0x8721fc], edx
mov dword [0x872200], edx
mov esi, dword [ebp]
test esi, esi
jle 0x45ee25
mov esi, dword [ebx + 0x8c]
mov dword [esp + 0x44], edi
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x38], edi
mov eax, dword [0x8721fc]
add eax, dword [ebx + 0x70]
add eax, edi
mov dword [esp + 0x3c], eax
mov ecx, dword [0x872200]
add ecx, dword [ebx + 0x78]
add ecx, dword [ebx + 0x18]
dec esi
sub esi, dword [ebx + 0x28]
cdq
mov dword [0x871e18], eax
mov dword [0x871e1c], edx
mov eax, ecx
cdq
mov dword [0x871e20], ecx
mov dword [0x871e24], edx
mov eax, edi
cdq
mov dword [0x871e28], edi
mov dword [0x871e2c], edx
mov eax, esi
cdq
mov dword [0x871e30], esi
mov dword [0x871e34], edx
push dword [ebp + 0x2a4]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
call dword [sym.imp.user32.dll_GetDC]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x45e9e2
test ecx, ecx
jle 0x45e9e2
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0x34], eax
lea edx, [edi + ecx]
cmp edx, eax
jl 0x45e9e2
mov dword [esp + 0x30], ebp
mov esi, eax
mov dword [esp + 0x44], esi
mov ecx, dword [ebx + 0x10]
lea edi, [ebp + 0x2c0]
mov edx, dword [0x8721fc]
add edx, dword [ebx + 0x70]
add edx, ecx
mov eax, dword [0x872200]
add eax, dword [ebx + 0x78]
xor ebp, ebp
push 0xcc0020
push ebp
push edi
push dword [ebx + 0xc0]
push esi
mov edi, dword [esp + 0x60]
push edi
push ebp
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [esp + 0x70]
push eax
mov edi, esi
mov ebp, dword [esp + 0x64]
call dword [sym.imp.gdi32.dll_StretchDIBits]
jmp 0x45ea15
lea edx, [ebp + 0x2c0]
push 0xcc0020
push 0
push edx
push dword [ebx + 0xc0]
push edi
mov edx, dword [esp + 0x60]
push edx
push esi
mov esi, dword [esp + 0x54]
push esi
push edi
push edx
push ecx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.gdi32.dll_StretchDIBits]
mov esi, dword [esp + 0x4c]
mov eax, esi
imul eax, edi
add eax, eax
add eax, eax
cdq
mov dword [0x871dc0], eax
mov dword [0x871dc4], edx
mov ecx, dword [0x872200]
mov eax, dword [0x872200]
cdq
add ecx, dword [ebx + 0x78]
adc edx, dword [ebx + 0x7c]
add ecx, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
mov dword [0x871dc8], ecx
mov dword [0x871dcc], edx
mov eax, dword [ebx + 0x8c]
cdq
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [0x871dd0], eax
mov dword [0x871dd4], edx
mov eax, esi
cdq
mov dword [0x871e38], esi
mov dword [0x871e3c], edx
mov eax, edi
cdq
mov dword [0x871e40], edi
mov dword [0x871e44], edx
mov ebx, dword [esp + 0x40]
push ebx
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_ReleaseDC]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edx, dword [0x872340]
sub edx, ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
mov dword [0x8721fc], edx
mov ebp, dword [0x872344]
sub ebp, eax
mov eax, ebp
shr eax, 0x1f
add ebp, eax
sar ebp, 1
mov dword [0x872200], ebp
jmp 0x45e84c
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x38], esi
mov edi, dword [ebx + 0x8c]
mov dword [esp + 0x34], edi
mov edi, dword [0x872340]
sub edi, ecx
mov esi, edi
shr esi, 0x1f
add edi, esi
sar edi, 1
mov dword [0x8721fc], edi
mov edi, dword [0x872344]
sub edi, eax
mov esi, edi
shr esi, 0x1f
add edi, esi
sar edi, 1
mov dword [0x872200], edi
movsx esi, byte [0x59b764]
test esi, esi
je 0x45eb36
cmp byte [0x59b768], 1
je 0x45ec91
test edx, edx
jne 0x45eb47
cmp byte [0x872284], 1
je 0x45ec91
test esi, esi
je 0x45ec23
movsx edx, byte [0x59b768]
test edx, edx
jne 0x45ec23
mov dword [esp + 0x30], ebp
mov dword [ebp + 0x2c4], ecx
mov edi, eax
neg edi
mov dword [ebp + 0x2c8], edi
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x38]
lea edx, [esi - 1]
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x34]
lea edx, [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [0x8721c8]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00460b64
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_GetDC]
mov ebx, eax
push 3
push ebx
call dword [sym.imp.gdi32.dll_SetStretchBltMode]
mov eax, dword [0x872350]
mov edi, dword [0x872354]
lea edx, [ebp + 0x2c0]
xor esi, esi
push 0xcc0020
push esi
push edx
push dword [0x8721c8]
push edi
push eax
push esi
push esi
push edi
push eax
push dword [0x872200]
push dword [0x8721fc]
push ebx
call dword [sym.imp.gdi32.dll_StretchDIBits]
push ebx
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_ReleaseDC]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_GetDC]
mov esi, eax
push 3
push esi
call dword [sym.imp.gdi32.dll_SetStretchBltMode]
lea edx, [ebp + 0x2c0]
xor eax, eax
push 0xcc0020
push eax
push edx
push dword [ebx + 0xc0]
mov ebx, dword [esp + 0x44]
push ebx
mov edi, dword [esp + 0x4c]
push edi
push eax
push eax
push dword [0x872354]
push dword [0x872350]
push dword [0x872200]
push dword [0x8721fc]
push esi
call dword [sym.imp.gdi32.dll_StretchDIBits]
push esi
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_ReleaseDC]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [ebp + 0x2c4], ecx
mov edx, eax
neg edx
mov dword [ebp + 0x2c8], edx
movzx esi, byte [0x5b85d4]
test esi, esi
je 0x45ed4b
movzx edx, byte [0x59b04c]
test edx, edx
je 0x45ed4b
mov dword [esp + 0x30], ebp
lea edx, [ecx + ecx]
add edx, edx
sub edx, ecx
lea edx, [ecx + edx*8]
add edx, edx
add edx, edx
lea ecx, [eax + eax]
add ecx, ecx
sub ecx, eax
lea edi, [eax + ecx*8]
add edi, edi
add edi, edi
mov esi, dword [esp + 0x38]
lea eax, [esi + esi]
add eax, eax
sub eax, esi
lea eax, [esi + eax*8]
add eax, eax
lea ebx, [eax + eax - 0x64]
mov ebp, dword [esp + 0x34]
lea eax, [ebp + ebp]
add eax, eax
sub eax, ebp
lea eax, [ebp + eax*8]
add eax, eax
lea eax, [eax + eax - 0x64]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
mov eax, dword [0x8721c8]
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461af8
jmp 0x45edbe
mov dword [esp + 0x30], ebp
lea esi, [ecx + ecx]
add esi, esi
sub esi, ecx
lea ebp, [ecx + esi*8]
add ebp, ebp
add ebp, ebp
lea edi, [eax + eax]
add edi, edi
sub edi, eax
lea ebx, [eax + edi*8]
add ebx, ebx
add ebx, ebx
mov edx, dword [esp + 0x38]
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea eax, [edx + eax*8]
add eax, eax
lea ecx, [eax + eax - 0x64]
mov eax, dword [esp + 0x34]
lea esi, [eax + eax]
add esi, esi
sub esi, eax
lea esi, [eax + esi*8]
add esi, esi
lea esi, [esi + esi - 0x64]
xor edi, edi
push ebx
push ebp
push eax
push edx
push edi
push edi
push esi
push ecx
push edi
push edi
mov eax, dword [esp + 0x8c]
push dword [eax + 0xc0]
push dword [0x8721c8]
mov ebp, dword [esp + 0x60]
call fcn.00460f10
add esp, 0x30
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_GetDC]
mov ebx, eax
push 3
push ebx
call dword [sym.imp.gdi32.dll_SetStretchBltMode]
mov eax, dword [0x872350]
mov edi, dword [0x872354]
lea edx, [ebp + 0x2c0]
xor esi, esi
push 0xcc0020
push esi
push edx
push dword [0x8721c8]
push edi
push eax
push esi
push esi
push edi
push eax
push dword [0x872200]
push dword [0x8721fc]
push ebx
call dword [sym.imp.gdi32.dll_StretchDIBits]
push ebx
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_ReleaseDC]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edx, dword [ebx + 0x88]
cmp edx, ecx
jne 0x45ee3f
mov esi, dword [ebx + 0x8c]
cmp esi, eax
je 0x45e8f3
jmp 0x45ee45
mov esi, dword [ebx + 0x8c]
mov dword [ebp + 0x2c4], ecx
mov edi, eax
neg edi
mov dword [ebp + 0x2c8], edi
cmp byte [0x59b768], 1
jne 0x45efed
movsx edi, byte [0x8722a0]
test edi, edi
jne 0x45ef80
movzx edi, byte [0x5b85d4]
test edi, edi
je 0x45ef10
movzx edi, byte [0x59b04c]
test edi, edi
je 0x45ef10
mov dword [esp + 0x30], ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea edi, [edx + edi*8]
add edi, edi
lea edi, [edi + edi - 0x64]
mov dword [esp + 0x10], edi
lea edi, [esi + esi]
add edi, edi
sub edi, esi
lea edi, [esi + edi*8]
add edi, edi
lea edi, [edi + edi - 0x64]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
lea esi, [ecx + ecx]
add esi, esi
sub esi, ecx
lea edx, [ecx + esi*8]
add edx, edx
add edx, edx
mov dword [esp + 0x28], edx
lea edx, [eax + eax]
add edx, edx
sub edx, eax
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x8721c8]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461af8
jmp 0x45f033
mov dword [esp + 0x30], ebp
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea ebx, [edx + edi*8]
add ebx, ebx
lea ebp, [ebx + ebx - 0x64]
lea ebx, [esi + esi]
add ebx, ebx
sub ebx, esi
lea ebx, [esi + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
lea edi, [ecx + ecx]
add edi, edi
sub edi, ecx
lea ecx, [ecx + edi*8]
add ecx, ecx
add ecx, ecx
lea edi, [eax + eax]
add edi, edi
sub edi, eax
lea edi, [eax + edi*8]
add edi, edi
add edi, edi
push edi
push ecx
push esi
push edx
xor eax, eax
push eax
push eax
push ebx
push ebp
push eax
push eax
mov ebx, dword [esp + 0x8c]
push dword [ebx + 0xc0]
push dword [0x8721c8]
mov ebp, dword [esp + 0x60]
call fcn.00460f10
add esp, 0x30
jmp 0x45f033
mov dword [esp + 0x30], ebp
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea ebx, [edx + edi*8]
add ebx, ebx
lea ebp, [ebx + ebx - 0x64]
lea ebx, [esi + esi]
add ebx, ebx
sub ebx, esi
lea ebx, [esi + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
lea edi, [ecx + ecx]
add edi, edi
sub edi, ecx
lea ecx, [ecx + edi*8]
add ecx, ecx
add ecx, ecx
lea edi, [eax + eax]
add edi, edi
sub edi, eax
lea edi, [eax + edi*8]
add edi, edi
add edi, edi
push edi
push ecx
push esi
push edx
xor eax, eax
push eax
push eax
push ebx
push ebp
push eax
push eax
mov ebx, dword [esp + 0x8c]
push dword [ebx + 0xc0]
push dword [0x8721c8]
mov ebp, dword [esp + 0x60]
call fcn.0045ff7c
add esp, 0x30
jmp 0x45f033
mov dword [esp + 0x30], ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
lea edi, [edx - 1]
mov dword [esp + 0x10], edi
lea edi, [esi - 1]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [0x8721c8]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00460b64
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
mov esi, dword [0x8721fc]
add esi, dword [ebx + 0x70]
mov edx, dword [0x872200]
add edx, dword [ebx + 0x78]
mov dword [esp + 0x34], edx
push 3
push edi
call dword [sym.imp.gdi32.dll_SetStretchBltMode]
mov ecx, dword [0x872350]
mov eax, dword [0x872354]
lea edx, [ebp + 0x2c0]
xor ebx, ebx
push 0xcc0020
push ebx
push edx
push dword [0x8721c8]
push eax
push ecx
push ebx
push ebx
push eax
push ecx
mov edx, dword [esp + 0x5c]
push edx
push esi
push edi
call dword [sym.imp.gdi32.dll_StretchDIBits]
push edi
push dword [ebp + 0x2a4]
call dword [sym.imp.user32.dll_ReleaseDC]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret 4