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

Disassembly:
push 0xffffffffffffffff
push 0x49f008
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov ebp, vtable.CBitmap.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], ebx
call fcn.00465918
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00465918
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.00465918
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0xc0]
push eax
mov byte [esp + 0xb0], 3
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.00413b40
test eax, eax
je 0x416408
push esi
lea ecx, [esp + 0x6c]
call fcn.00465eb9
mov ecx, dword [esi + 0xd0]
cmp ecx, ebx
mov byte [esp + 0x9c], 4
je 0x415f36
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.0045fc12
add esp, 4
cmp eax, ebx
je 0x415f4b
mov dword [eax + 4], ebx
mov dword [eax], ebp
jmp 0x415f4d
xor eax, eax
mov ecx, dword [esi + 0xd4]
cmp ecx, ebx
mov dword [esi + 0xd0], eax
je 0x415f66
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.0045fc12
add esp, 4
cmp eax, ebx
je 0x415f7b
mov dword [eax + 4], ebx
mov dword [eax], ebp
jmp 0x415f7d
xor eax, eax
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0xa4]
cmp eax, ebx
jne 0x415fa9
mov edi, dword [esi + 0xd0]
push 0x4c9a10
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
push eax
mov ecx, edi
call fcn.004660ed
jmp 0x415fb8
mov ecx, dword [esi + 0xd0]
push eax
push ecx
mov ecx, esi
call fcn.00413bb0
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
lea edx, [esp + 0x68]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00413c40
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + 4]
lea edx, [esp + 0x7c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x80]
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x84]
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0xd8]
cmp ecx, ebx
mov dword [esi + 0xac], edx
je 0x416026
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.0045fc12
add esp, 4
cmp eax, ebx
je 0x41603d
mov dword [eax + 4], ebx
mov dword [eax], ebp
mov edi, eax
jmp 0x41603f
xor edi, edi
cmp dword [esi + 0x54], ebx
mov dword [esi + 0xd8], edi
jne 0x41606b
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
sub eax, 2
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
jmp 0x4160b9
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
sub eax, 2
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.004660ed
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xa8]
mov edi, dword [esi + 0xd8]
sub eax, 2
push ecx
mov ecx, dword [esp + 0x70]
lea eax, [eax + eax*8]
push eax
push ecx
call ebp
push eax
mov ecx, edi
call fcn.004660ed
mov edx, dword [esp + 0x6c]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edx
call edi
push eax
lea ecx, [esp + 0x5c]
call fcn.00465e26
mov eax, dword [esi + 0xd4]
cmp eax, ebx
jne 0x4160e6
xor eax, eax
jmp 0x4160e9
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.00466193
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x20], eax
call edi
push eax
lea ecx, [esp + 0x3c]
call fcn.00465e26
mov eax, dword [esi + 0xd8]
cmp eax, ebx
jne 0x416117
xor eax, eax
jmp 0x41611a
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.00466193
cmp dword [esi + 0x54], ebx
mov dword [esp + 0x18], eax
je 0x416158
mov eax, dword [esp + 0x6c]
push eax
call edi
push eax
lea ecx, [esp + 0x4c]
call fcn.00465e26
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.00466193
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x48]
jmp 0x41615c
lea ecx, [esp + 0x38]
push 4
call fcn.00465777
cmp dword [esi + 0x54], ebx
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x5c]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x88]
push ecx
push ebx
push ebx
push edx
jne 0x4161a3
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
sub eax, 2
push eax
mov eax, dword [esp + 0x58]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x41623a
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
sub eax, 2
push eax
mov eax, dword [esp + 0x68]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
xor ebp, ebp
sub ecx, 2
test ecx, ecx
jle 0x41623a
mov eax, dword [esp + 0x80]
xor edi, edi
cmp eax, ebx
jle 0x416228
jmp 0x4161e0
mov edx, dword [esp + 0x4c]
push ebp
push edi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esi + 0xa8]
mov ebx, eax
mov eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push ebx
sub ecx, 2
imul ecx, eax
mov eax, dword [esp + 0x40]
push edx
add ecx, ebp
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x80]
add edi, 1
cmp edi, eax
jl 0x4161e0
xor ebx, ebx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
add ebp, 1
sub ecx, 2
cmp ebp, ecx
jl 0x4161d5
cmp dword [esi + 0x54], ebx
je 0x416262
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41624b
xor eax, eax
jmp 0x41624e
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00466193
lea ecx, [esp + 0x48]
call fcn.00465e8a
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x41626e
xor eax, eax
jmp 0x416271
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00466193
lea ecx, [esp + 0x38]
call fcn.00465e8a
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x416291
xor eax, eax
jmp 0x416294
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.00466193
lea ecx, [esp + 0x58]
call fcn.00465e8a
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + 4]
lea edx, [esp + 0x7c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x80]
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x84]
mov dword [esi + 0xa8], ecx
lea ebp, [esi + 0xdc]
mov ecx, ebp
mov dword [esi + 0xac], edx
call fcn.0046e0e1
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xa8]
push ebx
push ebx
push 0x20
push eax
push ecx
mov ecx, ebp
call fcn.0046e1a8
test eax, eax
jne 0x416364
lea ecx, [esp + 0x68]
mov byte [esp + 0x9c], 3
call fcn.00465f0d
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.00465ea0
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00465ea0
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.00465ea0
mov dword [esp + 0x20], vtable.CBitmap.0
jmp 0x41643f
mov eax, dword [esi + 0xd8]
cmp eax, ebx
jne 0x416372
xor ecx, ecx
jmp 0x416375
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0xe0]
push 0xffff00
push ecx
push eax
call fcn.004608f5
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.004140f0
cmp dword [esp + 0xa8], ebx
je 0x4163a1
mov ecx, esi
call fcn.004155f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x9c], 3
call fcn.00465f0d
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.00465ea0
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00465ea0
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.00465ea0
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.00409940
mov eax, 1
jmp 0x416455
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.00465ea0
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.00465ea0
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.00465ea0
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00409940
xor eax, eax
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8