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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x40
mov edi, ecx
movsx eax, byte [0x8017fc]
test eax, eax
jne 0x417d20
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 0x18]
sub ebx, dword [eax + 8]
add ebx, 1
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x10]
add edx, 1
mov esi, dword [0x801660]
mov ebp, dword [0x801664]
test ebx, ebx
jle 0x417d20
test edx, edx
jle 0x417d20
test esi, esi
jle 0x417d20
test ebp, ebp
jle 0x417d20
mov ecx, dword [edi]
test ecx, ecx
jne 0x417aa1
movsx eax, byte [0x8012a8]
test eax, eax
je 0x417aa1
movsx eax, byte [0x8012ac]
test eax, eax
je 0x417aa1
cmp byte [0x801590], 1
je 0x417d2a
cmp byte [0x801594], 1
je 0x417d2a
xor eax, eax
mov dword [0x8014f0], eax
mov dword [0x8014f4], eax
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x90]
call fcn.004196d8
test eax, eax
je 0x417a97
movsx eax, byte [0x8012a8]
test eax, eax
je 0x417a84
push 0x80b6fc
push 0x807270
call fcn.0040c5ac
add esp, 8
xor eax, eax
mov byte [0x8012f4], al
mov byte [0x5b372c], 1
mov byte [0x8012a8], al
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x54]
mov eax, dword [ebp + 0x78]
mov dword [edi + 0x2c4], eax
mov eax, dword [ebp + 0x7c]
neg eax
mov dword [edi + 0x2c8], eax
test ecx, ecx
mov ebp, dword [esp + 0x3c]
jne 0x417ae2
movsx eax, byte [0x801590]
cmp eax, 1
je 0x417d5b
cmp byte [0x801594], 1
je 0x417d5b
test ecx, ecx
jne 0x417af4
xor eax, eax
mov dword [0x8014f0], eax
mov dword [0x8014f4], eax
mov ecx, dword [edi]
test ecx, ecx
jne 0x417ccf
cmp ebx, esi
jne 0x417b08
cmp edx, ebp
je 0x41808d
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [edi + 0x2c4], esi
mov ebx, ebp
neg ebx
mov dword [edi + 0x2c8], ebx
cmp byte [0x5b372c], 1
jne 0x417c2c
movzx ebx, byte [0x5d04f4]
test ebx, ebx
je 0x417bc2
movzx ebx, byte [0x5b304c]
test ebx, ebx
je 0x417bc2
mov dword [esp + 0xc], 0
lea ebx, [edx + edx]
add ebx, ebx
sub ebx, edx
lea ebx, [edx + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
mov dword [esp + 0x10], ebx
lea ebx, [eax + eax]
add ebx, ebx
sub ebx, eax
lea ebx, [eax + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea eax, [esi + esi]
add eax, eax
sub eax, esi
lea esi, [esi + eax*8]
add esi, esi
add esi, esi
mov dword [esp + 0x20], esi
lea eax, [ebp + ebp]
add eax, eax
sub eax, ebp
lea ebp, [ebp + eax*8]
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x24], ebp
mov eax, dword [0x8014c4]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.004190b4
jmp 0x417c68
mov dword [esp + 0x38], edi
lea edi, [edx + edx]
add edi, edi
sub edi, edx
lea ecx, [edx + edi*8]
add ecx, ecx
lea ebx, [ecx + ecx - 0x64]
lea ecx, [eax + eax]
add ecx, ecx
sub ecx, eax
lea ecx, [eax + ecx*8]
add ecx, ecx
lea ecx, [ecx + ecx - 0x64]
lea edi, [esi + esi]
add edi, edi
sub edi, esi
lea esi, [esi + edi*8]
add esi, esi
add esi, esi
lea edi, [ebp + ebp]
add edi, edi
sub edi, ebp
lea ebp, [ebp + edi*8]
add ebp, ebp
add ebp, ebp
push ebp
push esi
push eax
push edx
push ecx
push ebx
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x74]
push dword [edx + 0x90]
push dword [0x8014c4]
mov edi, dword [esp + 0x60]
call fcn.004184cc
add esp, 0x28
jmp 0x417c68
mov dword [esp + 0xc], 0
lea ebx, [edx - 1]
mov dword [esp + 0x10], ebx
lea ebx, [eax - 1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov eax, dword [0x8014c4]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418120
push dword [edi + 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 [0x801660]
mov esi, dword [0x801664]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8014c4]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8014f4]
push dword [0x8014f0]
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push ebx
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea edx, [edi + 0x2c0]
xor eax, eax
push 0xcc0020
push eax
push edx
mov edx, dword [esp + 0x60]
push dword [edx + 0x90]
push ebx
push esi
push eax
push eax
push ebx
push esi
push dword [edx + 0x70]
push dword [edx + 0x68]
push ebp
call dword [sym.imp.GDI32.dll_StretchDIBits]
push ebp
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov eax, dword [0x801650]
sub eax, esi
mov esi, eax
shr esi, 0x1f
add eax, esi
sar eax, 1
mov dword [0x8014f0], eax
mov edx, dword [0x801654]
sub edx, ebp
mov ebp, edx
shr ebp, 0x1f
add edx, ebp
sar edx, 1
mov dword [0x8014f4], edx
jmp 0x417a54
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x30], edx
mov ebx, dword [0x801650]
sub ebx, esi
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x8014f0], ebx
mov ebx, dword [0x801654]
sub ebx, ebp
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x8014f4], ebx
movsx edx, byte [0x5b3728]
test edx, edx
je 0x417db3
cmp byte [0x5b372c], 1
je 0x417f08
test eax, eax
jne 0x417dc4
cmp byte [0x801594], 1
je 0x417f08
test edx, edx
je 0x417e96
movsx eax, byte [0x5b372c]
test eax, eax
jne 0x417e96
mov dword [edi + 0x2c4], esi
mov ebx, ebp
neg ebx
mov dword [edi + 0x2c8], ebx
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x34]
lea eax, [edx - 1]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov eax, dword [0x8014c4]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418120
push dword [edi + 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 [0x801660]
mov esi, dword [0x801664]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8014c4]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8014f4]
push dword [0x8014f0]
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push ebx
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
lea edx, [edi + 0x2c0]
xor eax, eax
push 0xcc0020
push eax
push edx
mov ebp, dword [esp + 0x60]
push dword [ebp + 0x90]
mov esi, dword [esp + 0x40]
push esi
mov edx, dword [esp + 0x48]
push edx
push eax
push eax
push dword [0x801664]
push dword [0x801660]
push dword [0x8014f4]
push dword [0x8014f0]
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push ebx
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [edi + 0x2c4], esi
mov eax, ebp
neg eax
mov dword [edi + 0x2c8], eax
movzx edx, byte [0x5d04f4]
test edx, edx
je 0x417fb4
movzx eax, byte [0x5b304c]
test eax, eax
je 0x417fb4
lea eax, [esi + esi]
add eax, eax
sub eax, esi
lea edx, [esi + eax*8]
add edx, edx
add edx, edx
lea eax, [ebp + ebp]
add eax, eax
sub eax, ebp
lea eax, [ebp + eax*8]
add eax, eax
add eax, eax
mov ebx, dword [esp + 0x34]
lea ebp, [ebx + ebx]
add ebp, ebp
sub ebp, ebx
lea ebp, [ebx + ebp*8]
add ebp, ebp
lea ebp, [ebp + ebp - 0x64]
mov esi, dword [esp + 0x30]
lea ecx, [esi + esi]
add ecx, ecx
sub ecx, esi
lea ecx, [esi + ecx*8]
add ecx, ecx
lea ecx, [ecx + ecx - 0x64]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [0x8014c4]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.004190b4
jmp 0x418026
mov dword [esp + 0x38], edi
lea ebx, [esi + esi]
add ebx, ebx
sub ebx, esi
lea ecx, [esi + ebx*8]
add ecx, ecx
add ecx, ecx
lea edi, [ebp + ebp]
add edi, edi
sub edi, ebp
lea edx, [ebp + edi*8]
add edx, edx
add edx, edx
mov eax, dword [esp + 0x34]
lea ebx, [eax + eax]
add ebx, ebx
sub ebx, eax
lea ebx, [eax + ebx*8]
add ebx, ebx
lea esi, [ebx + ebx - 0x64]
mov ebp, dword [esp + 0x30]
lea ebx, [ebp + ebp]
add ebx, ebx
sub ebx, ebp
lea ebx, [ebp + ebx*8]
add ebx, ebx
lea ebx, [ebx + ebx - 0x64]
xor edi, edi
push edx
push ecx
push ebp
push eax
push ebx
push esi
push edi
push edi
mov eax, dword [esp + 0x74]
push dword [eax + 0x90]
push dword [0x8014c4]
mov edi, dword [esp + 0x60]
call fcn.004184cc
add esp, 0x28
push dword [edi + 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 [0x801660]
mov esi, dword [0x801664]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x8014c4]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x8014f4]
push dword [0x8014f0]
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push ebx
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
push dword [edi + 0x2a4]
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edi
lea ecx, [edi + 0x2c0]
mov eax, dword [esp + 0x54]
mov edi, dword [0x8014f0]
add edi, dword [eax + 0x68]
mov dword [esp + 0x28], edi
mov edi, dword [0x8014f4]
add edi, dword [eax + 0x70]
mov dword [esp + 0x2c], edi
xor edi, edi
push 0xcc0020
push edi
push ecx
push dword [eax + 0x90]
push edx
push ebx
push edi
push edi
push ebp
push esi
mov edx, dword [esp + 0x54]
push edx
mov ebx, dword [esp + 0x54]
push ebx
mov ebp, dword [esp + 0x60]
push ebp
mov edi, dword [esp + 0x6c]
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, ebp
push eax
push dword [edi + 0x2a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4