Function at 0x45ec4c
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 [0x873cf8]
test eax, eax
jne 0x45ef43
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 [0x873ab0]
mov eax, dword [0x873ab4]
test edx, edx
jle 0x45ef43
test edi, edi
jle 0x45ef43
test ecx, ecx
jle 0x45ef43
test eax, eax
jle 0x45ef43
mov esi, dword [ebp]
test esi, esi
jne 0x45ed39
movsx edx, byte [0x8736f8]
test edx, edx
je 0x45ed39
movsx edx, byte [0x8736fc]
test edx, edx
je 0x45ed39
cmp byte [0x8739e0], 1
je 0x45ef4d
cmp byte [0x8739e4], 1
je 0x45ef4d
xor eax, eax
mov dword [0x87395c], eax
mov dword [0x873960], eax
mov eax, dword [ebx + 0xc0]
call fcn.0045f554
test eax, eax
je 0x45ed2f
movsx eax, byte [0x8736f8]
test eax, eax
je 0x45ed1c
push 0x87db3c
push 0x8792b0
call fcn.00409070
add esp, 8
xor eax, eax
mov byte [0x873740], al
mov byte [0x59cc68], 1
mov byte [0x8736f8], 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 0x45ed74
movsx edx, byte [0x8739e0]
cmp edx, 1
je 0x45ef80
cmp byte [0x8739e4], 1
je 0x45ef80
test esi, esi
jne 0x45ed89
xor edx, edx
mov dword [0x87395c], edx
mov dword [0x873960], edx
mov esi, dword [ebp]
test esi, esi
jle 0x45f2c9
mov esi, dword [ebx + 0x8c]
mov dword [esp + 0x44], edi
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x38], edi
mov eax, dword [0x87395c]
add eax, dword [ebx + 0x70]
add eax, edi
mov dword [esp + 0x3c], eax
mov ecx, dword [0x873960]
add ecx, dword [ebx + 0x78]
add ecx, dword [ebx + 0x18]
dec esi
sub esi, dword [ebx + 0x28]
cdq
mov dword [0x873578], eax
mov dword [0x87357c], edx
mov eax, ecx
cdq
mov dword [0x873580], ecx
mov dword [0x873584], edx
mov eax, edi
cdq
mov dword [0x873588], edi
mov dword [0x87358c], edx
mov eax, esi
cdq
mov dword [0x873590], esi
mov dword [0x873594], 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 0x45ee86
test ecx, ecx
jle 0x45ee86
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0x34], eax
lea edx, [edi + ecx]
cmp edx, eax
jl 0x45ee86
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 [0x87395c]
add edx, dword [ebx + 0x70]
add edx, ecx
mov eax, dword [0x873960]
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 0x45eeb9
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 [0x873520], eax
mov dword [0x873524], edx
mov ecx, dword [0x873960]
mov eax, dword [0x873960]
cdq
add ecx, dword [ebx + 0x78]
adc edx, dword [ebx + 0x7c]
add ecx, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
mov dword [0x873528], ecx
mov dword [0x87352c], 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 [0x873530], eax
mov dword [0x873534], edx
mov eax, esi
cdq
mov dword [0x873598], esi
mov dword [0x87359c], edx
mov eax, edi
cdq
mov dword [0x8735a0], edi
mov dword [0x8735a4], 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 [0x873aa0]
sub edx, ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
mov dword [0x87395c], edx
mov ebp, dword [0x873aa4]
sub ebp, eax
mov eax, ebp
shr eax, 0x1f
add ebp, eax
sar ebp, 1
mov dword [0x873960], ebp
jmp 0x45ecf0
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x38], esi
mov edi, dword [ebx + 0x8c]
mov dword [esp + 0x34], edi
mov edi, dword [0x873aa0]
sub edi, ecx
mov esi, edi
shr esi, 0x1f
add edi, esi
sar edi, 1
mov dword [0x87395c], edi
mov edi, dword [0x873aa4]
sub edi, eax
mov esi, edi
shr esi, 0x1f
add edi, esi
sar edi, 1
mov dword [0x873960], edi
movsx esi, byte [0x59cc64]
test esi, esi
je 0x45efda
cmp byte [0x59cc68], 1
je 0x45f135
test edx, edx
jne 0x45efeb
cmp byte [0x8739e4], 1
je 0x45f135
test esi, esi
je 0x45f0c7
movsx edx, byte [0x59cc68]
test edx, edx
jne 0x45f0c7
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 [0x873928]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461008
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 [0x873ab0]
mov edi, dword [0x873ab4]
lea edx, [ebp + 0x2c0]
xor esi, esi
push 0xcc0020
push esi
push edx
push dword [0x873928]
push edi
push eax
push esi
push esi
push edi
push eax
push dword [0x873960]
push dword [0x87395c]
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 [0x873ab4]
push dword [0x873ab0]
push dword [0x873960]
push dword [0x87395c]
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 [0x5b9b14]
test esi, esi
je 0x45f1ef
movzx edx, byte [0x59c04c]
test edx, edx
je 0x45f1ef
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 [0x873928]
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461f9c
jmp 0x45f262
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 [0x873928]
mov ebp, dword [esp + 0x60]
call fcn.004613b4
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 [0x873ab0]
mov edi, dword [0x873ab4]
lea edx, [ebp + 0x2c0]
xor esi, esi
push 0xcc0020
push esi
push edx
push dword [0x873928]
push edi
push eax
push esi
push esi
push edi
push eax
push dword [0x873960]
push dword [0x87395c]
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 0x45f2e3
mov esi, dword [ebx + 0x8c]
cmp esi, eax
je 0x45ed97
jmp 0x45f2e9
mov esi, dword [ebx + 0x8c]
mov dword [ebp + 0x2c4], ecx
mov edi, eax
neg edi
mov dword [ebp + 0x2c8], edi
cmp byte [0x59cc68], 1
jne 0x45f491
movsx edi, byte [0x873a00]
test edi, edi
jne 0x45f424
movzx edi, byte [0x5b9b14]
test edi, edi
je 0x45f3b4
movzx edi, byte [0x59c04c]
test edi, edi
je 0x45f3b4
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 [0x873928]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461f9c
jmp 0x45f4d7
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 [0x873928]
mov ebp, dword [esp + 0x60]
call fcn.004613b4
add esp, 0x30
jmp 0x45f4d7
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 [0x873928]
mov ebp, dword [esp + 0x60]
call fcn.00460420
add esp, 0x30
jmp 0x45f4d7
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 [0x873928]
mov edx, dword [ebx + 0xc0]
xor ecx, ecx
mov ebp, dword [esp + 0x30]
call fcn.00461008
push dword [ebp + 0x2a4]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov esi, dword [0x87395c]
add esi, dword [ebx + 0x70]
mov edx, dword [0x873960]
add edx, dword [ebx + 0x78]
mov dword [esp + 0x34], edx
push 3
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [0x873ab0]
mov eax, dword [0x873ab4]
lea edx, [ebp + 0x2c0]
xor ebx, ebx
push 0xcc0020
push ebx
push edx
push dword [0x873928]
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