Function at 0x406ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca35b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x517b6c]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
call edx
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x48]
mov edx, dword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x4c]
mov edx, dword [esi]
mov edi, eax
imul edi, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x44]
mov ebx, ecx
mov dword [esp + 0x20], ecx
imul ebx, eax
sar ecx, 3
imul ecx, eax
mov eax, dword [edx + 0xc]
add edi, 0x1f
add ebx, 0x1f
mov dword [esp + 0x30], ecx
shr edi, 3
shr ebx, 3
mov ecx, esi
and edi, 0x1ffffffc
and ebx, 0x1ffffffc
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x20], edx
call fcn.004015c0
mov dword [esp + 0xe0], 0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
test eax, eax
jne 0x407072
lea ecx, [esp + 0x54]
push 0x4dc620
push ecx
call fcn.004020d0
add esp, 8
lea ecx, [esp + 0x34]
lea eax, [esp + 0x54]
call fcn.004016e0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x406ffd
mov eax, dword [eax + 4]
jmp 0x407000
add eax, 4
push 0x2010
push 0x4dc684
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x4c], esi
jb 0x407026
mov edx, dword [esp + 0x38]
push edx
call fcn.004ad032
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401650
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x4070d2
lea edx, [esp + 0x54]
push 0x4dc634
push edx
call fcn.004020d0
add esp, 8
lea ecx, [esp + 0x34]
lea eax, [esp + 0x54]
call fcn.004016e0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x4070a9
mov eax, dword [eax + 4]
jmp 0x4070ac
add eax, 4
push 0x2010
push 0x4dc684
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x4c], esi
jb 0x4070d2
mov eax, dword [esp + 0x38]
push eax
call fcn.004ad032
add esp, 4
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x20]
je 0x4071de
lea ecx, [esp + 0x54]
push 0x4dc69c
push ecx
call fcn.004020d0
mov edx, dword [ebp + 8]
add esp, 8
add edx, 0x58
push edx
push ecx
lea eax, [esp + 0x5c]
push str._nName_
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
mov ecx, dword [esp + 0x28]
add esp, 8
push ecx
push ecx
push str._nSrc_
push ecx
push esi
push ecx
lea edx, [esp + 0x6c]
push str._nDst_
push edx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
add esp, 4
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
lea ecx, [esp + 0x34]
lea eax, [esp + 0x54]
call fcn.004016e0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x407169
mov eax, dword [eax + 4]
jmp 0x40716c
add eax, 4
push 0x2010
push 0x4dc684
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x4c], esi
jb 0x407192
mov eax, dword [esp + 0x38]
push eax
call fcn.004ad032
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401650
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jle 0x407305
lea edx, [esp + 0x54]
push 0x4dc6e4
push edx
call fcn.004020d0
mov eax, dword [ebp + 8]
add esp, 8
add eax, 0x58
push eax
push ecx
lea ecx, [esp + 0x5c]
push str._nName_
push ecx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
mov edx, dword [esp + 0x2c]
add esp, 8
push edx
push ecx
push str._nSrcWidth_
push ecx
push esi
push ecx
push str._nDstWidth_
push ecx
push 0
push ecx
lea eax, [esp + 0x7c]
push str._nDstX_
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
add esp, 4
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
add esp, 4
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
lea ecx, [esp + 0x34]
lea eax, [esp + 0x54]
call fcn.004016e0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x407290
mov eax, dword [eax + 4]
jmp 0x407293
add eax, 4
push 0x2010
push 0x4dc684
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x4c], esi
jb 0x4072b9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004ad032
add esp, 4
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401650
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
cmp eax, esi
jle 0x407402
lea eax, [esp + 0x54]
push 0x4dc6e4
push eax
call fcn.004020d0
mov ecx, dword [ebp + 8]
add esp, 8
add ecx, 0x58
push ecx
push ecx
lea edx, [esp + 0x5c]
push str._nName_
push edx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
push ecx
push str._nSrcHeight_
push ecx
push esi
push ecx
push str._nDstHeight_
push ecx
push 0
push ecx
lea ecx, [esp + 0x7c]
push str._nDstY_
push ecx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
add esp, 4
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
add esp, 4
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.00407c30
lea ecx, [esp + 0x34]
lea eax, [esp + 0x54]
call fcn.004016e0
cmp dword [eax + 0x18], 0x10
jb 0x4073b5
mov eax, dword [eax + 4]
jmp 0x4073b8
add eax, 4
push 0x2010
push 0x4dc684
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x34]
call fcn.00403750
lea eax, [esp + 0x54]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401300
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub esi, eax
imul esi, edi
add dword [esp + 0x14], esi
test eax, eax
jle 0x40743b
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call fcn.004b0200
add dword [esp + 0x20], edi
add esi, ebx
add esp, 0xc
sub dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
jne 0x407413
lea ecx, [esp + 0xa0]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401650
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4