Function at 0x4179f4
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 [0x800964]
test eax, eax
jne 0x417adb
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 [0x8007c8]
mov ebp, dword [0x8007cc]
test ebx, ebx
jle 0x417adb
test edx, edx
jle 0x417adb
test esi, esi
jle 0x417adb
test ebp, ebp
jle 0x417adb
mov eax, dword [edi]
test eax, eax
jne 0x417ae5
movsx ecx, byte [0x8003e8]
test ecx, ecx
je 0x417ae5
movsx ecx, byte [0x8003ec]
test ecx, ecx
je 0x417ae5
cmp byte [0x8006c8], 1
je 0x417d69
cmp byte [0x8006cc], 1
je 0x417d69
xor eax, eax
mov dword [0x80062c], eax
mov dword [0x800630], eax
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 0x90]
call fcn.00419718
test eax, eax
je 0x417adb
movsx eax, byte [0x8003e8]
test eax, eax
je 0x417ac8
push 0x80a65c
push 0x806270
call fcn.0040c5f0
add esp, 8
xor eax, eax
mov byte [0x800420], al
mov byte [0x5b2730], 1
mov byte [0x8003e8], al
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x54]
mov ebp, dword [ecx + 0x78]
mov dword [edi + 0x2c4], ebp
mov ebp, dword [ecx + 0x7c]
neg ebp
mov dword [edi + 0x2c8], ebp
test eax, eax
mov ebp, dword [esp + 0x3c]
jne 0x417b26
movsx eax, byte [0x8006c8]
cmp eax, 1
je 0x417d9a
cmp byte [0x8006cc], 1
je 0x417d9a
xor eax, eax
mov dword [0x80062c], eax
mov dword [0x800630], eax
cmp dword [edi], 0
jne 0x417d0e
cmp ebx, esi
jne 0x417b47
cmp edx, ebp
je 0x4180cc
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 [0x5b2730], 1
jne 0x417c6b
movzx ebx, byte [0x5cf4f4]
test ebx, ebx
je 0x417c01
movzx ebx, byte [0x5b204c]
test ebx, ebx
je 0x417c01
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 [0x800600]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.004190f4
jmp 0x417ca7
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 [0x800600]
mov edi, dword [esp + 0x60]
call fcn.0041850c
add esp, 0x28
jmp 0x417ca7
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 [0x800600]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418160
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 [0x8007c8]
mov esi, dword [0x8007cc]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x800600]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x800630]
push dword [0x80062c]
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 [0x8007b8]
sub eax, esi
mov esi, eax
shr esi, 0x1f
add eax, esi
sar eax, 1
mov dword [0x80062c], eax
mov edx, dword [0x8007bc]
sub edx, ebp
mov ebp, edx
shr ebp, 0x1f
add edx, ebp
sar edx, 1
mov dword [0x800630], edx
jmp 0x417a98
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 [0x8007b8]
sub ebx, esi
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x80062c], ebx
mov ebx, dword [0x8007bc]
sub ebx, ebp
mov edx, ebx
shr edx, 0x1f
add ebx, edx
sar ebx, 1
mov dword [0x800630], ebx
movsx edx, byte [0x5b272c]
test edx, edx
je 0x417df2
cmp byte [0x5b2730], 1
je 0x417f47
test eax, eax
jne 0x417e03
cmp byte [0x8006cc], 1
je 0x417f47
test edx, edx
je 0x417ed5
movsx eax, byte [0x5b2730]
test eax, eax
jne 0x417ed5
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 [0x800600]
mov ebp, dword [esp + 0x54]
mov edx, dword [ebp + 0x90]
xor ecx, ecx
call fcn.00418160
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 [0x8007c8]
mov esi, dword [0x8007cc]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x800600]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x800630]
push dword [0x80062c]
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 [0x8007cc]
push dword [0x8007c8]
push dword [0x800630]
push dword [0x80062c]
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 [0x5cf4f4]
test edx, edx
je 0x417ff3
movzx eax, byte [0x5b204c]
test eax, eax
je 0x417ff3
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 [0x800600]
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 0x90]
xor ecx, ecx
call fcn.004190f4
jmp 0x418065
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 [0x800600]
mov edi, dword [esp + 0x60]
call fcn.0041850c
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 [0x8007c8]
mov esi, dword [0x8007cc]
lea edx, [edi + 0x2c0]
xor ebp, ebp
push 0xcc0020
push ebp
push edx
push dword [0x800600]
push esi
push eax
push ebp
push ebp
push esi
push eax
push dword [0x800630]
push dword [0x80062c]
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 [0x80062c]
add edi, dword [eax + 0x68]
mov dword [esp + 0x28], edi
mov edi, dword [0x800630]
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