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

Disassembly:
push 0xffffffffffffffff
push 0x4910f8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
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.0045734e
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.0045734e
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.0045734e
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.00413320
test eax, eax
je 0x415be8
push esi
lea ecx, [esp + 0x6c]
call fcn.004578ef
mov ecx, dword [esi + 0xd0]
cmp ecx, ebx
mov byte [esp + 0x9c], 4
je 0x415716
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.00451402
add esp, 4
cmp eax, ebx
je 0x41572b
mov dword [eax + 4], ebx
mov dword [eax], ebp
jmp 0x41572d
xor eax, eax
mov ecx, dword [esi + 0xd4]
cmp ecx, ebx
mov dword [esi + 0xd0], eax
je 0x415746
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 8
call fcn.00451402
add esp, 4
cmp eax, ebx
je 0x41575b
mov dword [eax + 4], ebx
mov dword [eax], ebp
jmp 0x41575d
xor eax, eax
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0xa4]
cmp eax, ebx
jne 0x415789
mov edi, dword [esi + 0xd0]
push 0x4b6a10
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
push eax
mov ecx, edi
call fcn.00457b23
jmp 0x415798
mov ecx, dword [esi + 0xd0]
push eax
push ecx
mov ecx, esi
call fcn.00413390
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.00413420
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 0x415806
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
push 8
call fcn.00451402
add esp, 4
cmp eax, ebx
je 0x41581d
mov dword [eax + 4], ebx
mov dword [eax], ebp
mov edi, eax
jmp 0x41581f
xor edi, edi
cmp dword [esi + 0x54], ebx
mov dword [esi + 0xd8], edi
jne 0x41584b
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 0x415899
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.00457b23
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.00457b23
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.0045785c
mov eax, dword [esi + 0xd4]
cmp eax, ebx
jne 0x4158c6
xor eax, eax
jmp 0x4158c9
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.00457bc9
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x20], eax
call edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0045785c
mov eax, dword [esi + 0xd8]
cmp eax, ebx
jne 0x4158f7
xor eax, eax
jmp 0x4158fa
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.00457bc9
cmp dword [esi + 0x54], ebx
mov dword [esp + 0x18], eax
je 0x415938
mov eax, dword [esp + 0x6c]
push eax
call edi
push eax
lea ecx, [esp + 0x4c]
call fcn.0045785c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call fcn.00457bc9
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x48]
jmp 0x41593c
lea ecx, [esp + 0x38]
push 4
call fcn.004571ad
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 0x415983
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 0x415a1a
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 0x415a1a
mov eax, dword [esp + 0x80]
xor edi, edi
cmp eax, ebx
jle 0x415a08
jmp 0x4159c0
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 0x4159c0
xor ebx, ebx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
add ebp, 1
sub ecx, 2
cmp ebp, ecx
jl 0x4159b5
cmp dword [esi + 0x54], ebx
je 0x415a42
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x415a2b
xor eax, eax
jmp 0x415a2e
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00457bc9
lea ecx, [esp + 0x48]
call fcn.004578c0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x415a4e
xor eax, eax
jmp 0x415a51
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00457bc9
lea ecx, [esp + 0x38]
call fcn.004578c0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x415a71
xor eax, eax
jmp 0x415a74
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.00457bc9
lea ecx, [esp + 0x58]
call fcn.004578c0
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.0045fb41
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.0045fc08
test eax, eax
jne 0x415b44
lea ecx, [esp + 0x68]
mov byte [esp + 0x9c], 3
call fcn.00457943
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.004578d6
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.004578d6
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.004578d6
mov dword [esp + 0x20], vtable.CBitmap.0
jmp 0x415c1f
mov eax, dword [esi + 0xd8]
cmp eax, ebx
jne 0x415b52
xor ecx, ecx
jmp 0x415b55
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0xe0]
push 0xffff00
push ecx
push eax
call fcn.0045240a
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.004138d0
cmp dword [esp + 0xa8], ebx
je 0x415b81
mov ecx, esi
call fcn.00414dd0
lea ecx, [esp + 0x68]
mov byte [esp + 0x9c], 3
call fcn.00457943
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.004578d6
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.004578d6
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.004578d6
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x20], vtable.CBitmap.0
call fcn.00408cb0
mov eax, 1
jmp 0x415c35
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 2
call fcn.004578d6
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 1
call fcn.004578d6
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 0
call fcn.004578d6
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00408cb0
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