Function at 0x49a310
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ebff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [ebp + 0x38]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
mov esi, ecx
mov dword [esp + 0x2c], esi
je 0x49a346
test edi, edi
jne 0x49a351
mov ecx, dword [ebp + 0x40]
xor edi, edi
sub ecx, eax
je 0x49a351
mov edi, eax
mov ebx, dword [ebp + 0x20]
cmp ebx, 0xffffffff
mov ecx, dword [ebp + 0x3c]
je 0x49a360
test ebx, ebx
jne 0x49a36b
mov edx, dword [ebp + 0x44]
xor ebx, ebx
sub edx, ecx
je 0x49a36b
mov ebx, ecx
mov eax, dword [esi + 0x28]
cdq
idiv dword [esi + 0x30]
mov edx, dword [ebp + 0x40]
sub edx, dword [ebp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], eax
je 0x49a386
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp + 0x44]
sub esi, ecx
mov dword [esp + 0x1c], eax
je 0x49a398
mov dword [esp + 0x1c], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov dword [esp + 0x10], ecx
jne 0x49a3b5
test edx, edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
je 0x49a3b5
mov ecx, edx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x18]
test edx, edx
mov dword [esp + 0xc], edx
jne 0x49a3d5
test esi, esi
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xc], edx
je 0x49a3d5
mov edx, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x34], 0
je 0x49a42d
mov esi, dword [ebp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [ebp + 0x30]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0x34]
mov dword [eax + 0xc], esi
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 8]
push ebx
push edi
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.00499bf0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_347
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x7c], 0
jne 0x49a449
xor eax, eax
jmp 0x49a44c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call sub.MFC80U.DLL_Ordinal_1270
test eax, eax
je case.default.0x49a68d
mov eax, dword [esp + 0x2c]
add eax, 0x20
mov dword [esp + 0x4c], eax
jne 0x49a476
xor eax, eax
jmp 0x49a479
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call sub.MFC80U.DLL_Ordinal_5633
mov eax, dword [ebp + 0x24]
cmp eax, 0x101
jg 0x49a67f
je 0x49a4d5
test eax, eax
jne case.default.0x49a68d
cmp dword [esp + 0x10], eax
je case.default.0x49a68d
cmp dword [esp + 0x14], eax
je case.default.0x49a68d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov edx, dword [ebp + 0x28]
test edx, edx
mov ecx, dword [ebp + 0x30]
jne 0x49a56c
test ecx, ecx
jne 0x49a56c
cmp dword [ebp + 0x2c], ecx
jne 0x49a56c
cmp dword [ebp + 0x34], ecx
jne 0x49a56c
mov edi, vtable.CBrush.0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edi
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x7c], 1
add edx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
je 0x49a534
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x48]
call sub.MFC80U.DLL_Ordinal_1271
lea ecx, [esp + 0x60]
push ecx
lea eax, [esp + 0x48]
mov ecx, esi
call fcn.004070e0
mov byte [esp + 0x7c], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edi
call fcn.00406940
jmp case.default.0x49a68d
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, dword [ebp + 0x30]
mov dword [esp + 0x44], eax
sub eax, edx
mov dword [esp + 0x4c], ecx
sub ecx, edx
cdq
idiv ecx
mov dword [esp + 0x24], ecx
test edx, edx
mov dword [esp + 0x2c], eax
je 0x49a599
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0xc]
cdq
idiv dword [esp + 0x1c]
test edx, edx
je 0x49a5a9
add eax, 1
test eax, eax
jle 0x49a620
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x2c], 0
jle 0x49a611
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push ebx
add eax, edi
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x28], ecx
sub dword [esp + 0x34], 1
jne 0x49a5d3
mov edx, dword [esp + 0x24]
add dword [esp + 0x20], edx
sub dword [esp + 0x30], 1
jne 0x49a5b8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x28]
push 0xcc0020
push ebx
push edi
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xc]
push 0xcc0020
push ebx
add eax, edi
push eax
mov eax, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 4]
add edx, eax
push edx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp case.default.0x49a68d
add eax, 0xfffffefe
cmp eax, 7
ja case.default.0x49a68d
jmp dword [eax*4 + 0x49ae80]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
mov edx, dword [esp + 0x2c]
jmp 0x49ae49
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [edx - 3]
cmp eax, ecx
mov dword [esp + 0x20], eax
jg 0x49a4b0
cmp edx, ecx
jl 0x49a6f1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [eax + edi]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
sub edx, eax
add eax, ecx
push eax
jmp 0x49ae49
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
lea ecx, [eax - 3]
mov edx, eax
mov eax, dword [esp + 0x10]
jl 0x49a771
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
sub edx, eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
add edx, edi
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
sub eax, ecx
push ebx
sub edx, ecx
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x48], edx
call fcn.0040f270
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
push eax
add edx, edi
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov ecx, dword [esp + 0x14]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x49a7f6
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x49a7f6
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
cmp ecx, 3
jl case.0x49a68d.258
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
push ebx
lea ecx, [eax + edi]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], edx
sub edx, eax
add eax, ecx
mov ecx, dword [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0xc]
add ecx, eax
push ecx
add edx, edi
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov eax, 0x55555556
imul dword [esp + 0x1c]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x49a8c3
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x49a8c3
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
sub edx, eax
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
lea edx, [eax + ebx]
push edx
mov edx, dword [esp + 0x30]
sub edx, eax
push edi
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
sub ecx, eax
add eax, edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0x10]
add edx, eax
push edx
mov edx, dword [ebp + 0xc]
push edx
add ecx, ebx
push esi
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov eax, 0x55555556
imul dword [esp + 0x1c]
mov eax, edx
shr eax, 0x1f
mov ecx, 3
add eax, edx
cmp eax, ecx
mov dword [esp + 0x24], ecx
jl 0x49abb7
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, 0x55555556
imul dword [esp + 0x14]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
mov dword [esp + 0x20], ecx
jl 0x49abc0
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x28], 0
je 0x49a9d4
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x49a9d4
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x49a9d4
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x49a9d4
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
push ebx
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + edi]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x18], ecx
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov dword [esp + 0x54], eax
push esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x5c], edx
call fcn.0040f270
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
add edx, edi
mov dword [esp + 0x54], eax
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
mov dword [esp + 0x60], edx
call fcn.00406870
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
lea edx, [eax + ebx]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc]
sub edx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x2c], edx
sub edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], eax
push edx
mov edx, dword [esp + 0x20]
push edi
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x54]
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push edx
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
add eax, edx
mov edx, dword [esp + 0x20]
add ebx, ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push ebx
push ecx
mov ecx, dword [esp + 0x44]
push edi
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push esi
mov ecx, edi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov edx, dword [esp + 0x18]
push edi
push edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push eax
push ecx
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
jmp case.default.0x49a68d
mov dword [esp + 0x28], ecx
jmp 0x49a982
mov dword [esp + 0x18], ecx
jmp 0x49a9a6
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x30]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x38], eax
sub ebx, ecx
mov ecx, dword [ebp + 0x34]
mov eax, ecx
sub eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
add edx, eax
mov dword [esp + 0x3c], edx
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0xc]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, ecx
mov ecx, dword [ebp + 0x10]
lea edx, [eax + ecx]
add eax, ebx
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
add eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
sub eax, ebx
sub eax, dword [ebp + 0x28]
sub eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x30]
sub eax, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push edx
push ecx
push eax
push esi
xor ecx, ecx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push ebx
mov ebx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
push ebx
push esi
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [ebp + 0x34]
push edx
push ebx
push esi
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x40]
push edi
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push eax
push ebx
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push edi
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
jmp 0x49ae4d
mov eax, dword [ebp + 0x30]
sub eax, dword [ebp + 0x2c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x28]
sub ecx, dword [ebp + 0x34]
mov dword [esp + 0x34], eax
cdq
sub eax, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x44], eax
sar ecx, 1
sub eax, ecx
mov dword [esp + 0x4c], eax
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x28]
add eax, edx
mov edx, dword [esp + 0x34]
sub ecx, edx
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
sub ecx, dword [esp + 0x18]
add eax, edx
add eax, dword [ebp + 0xc]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [ebp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + edi]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x34]
lea edx, [ecx + edi]
sub ecx, dword [ebp + 0x30]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x28]
add edx, edi
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x30]
add edx, edi
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x28]
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
push eax
push edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push esi
mov ecx, ebx
mov edx, edi
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edi
push edx
mov edx, dword [esp + 0x5c]
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edi
push edx
mov edx, dword [esp + 0x54]
push esi
mov ecx, ebx
lea eax, [esp + 0x64]
call fcn.00406870
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x38]
push edi
push eax
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x34]
push esi
lea eax, [esp + 0x6c]
call fcn.0040f270
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x40