Function at 0x4a5e70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e673
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5ec
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x2d0], esi
je 0x4a5eaf
mov eax, dword [edi + 4]
push 0x1caf
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push esi
push ecx
mov dword [edi + 0x2d0], esi
call ebx
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x3a8]
push edx
push 0x341
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ecx
lea edx, [ebp - 0x3a8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.0040bfb0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [edi + 0x8c]
call fcn.004ef5c0
push 0
push 0
push 0
push 0x170
push 0
push 0x16f
push 0x172
push 0x16e
push 0x171
lea ecx, [edi + 0x8c]
call fcn.004ef390
mov eax, dword [edi + 0x90]
push 0
push eax
call ebx
mov ecx, dword [edi + 0xf4]
push 0
push ecx
call ebx
lea ecx, [edi + 0x2a4]
call fcn.004fbd70
push 0xffffffffffffffff
lea ecx, [edi + 0x2a8]
push 0
call fcn.004a3d50
lea ecx, [edi + 0x2a4]
call fcn.004fbc70
push 0x59e658
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00425e40
mov byte [ebp - 4], 2
push 0x5a39ac
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00425e40
add esp, 0x18
mov byte [ebp - 4], 3
mov eax, dword [eax]
lea edx, [ebp - 0x5f8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a629a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x5cc]
push eax
mov ecx, edi
call fcn.004a9640
test al, al
je 0x4a6271
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xb4], edx
lea edx, [ebp - 0x38]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp + 0x28]
push edx
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xac], ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4a6079
movzx ecx, word [ebp - 0xaa]
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
fdiv qword [0x59d0d8]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x38]
lea edx, [ebp - 0xfc]
push edx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xfc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4a60bb
movzx eax, word [ebp - 0xee]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fdiv qword [0x59d0d8]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fsub qword [ebp - 0x38]
fcomp qword [0x59e1b8]
fnstsw ax
test ah, 0x41
jp 0x4a6271
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x94], edx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4a6124
movzx ecx, word [ebp - 0x8a]
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
fdiv qword [0x59d0d8]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x40]
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4a615a
movzx eax, word [ebp - 0x6e]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fdiv qword [0x59d0d8]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x40]
fsub qword [ebp - 0x30]
fcomp qword [0x59e1b8]
fnstsw ax
test ah, 0x41
jp 0x4a6271
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x59e4c4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00425e40
mov byte [ebp - 4], 9
lea edx, [ebp - 0x5cc]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00425e40
add esp, 0x18
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407d40
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a61fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a621f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0x2a4]
call fcn.004fbd70
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [edi + 0x2a8]
call fcn.004a3af0
lea ecx, [edi + 0x2a4]
call fcn.004fbc70
mov byte [ebp - 4], 0
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a6271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x5f8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a6000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [edi + 0x280]
call fcn.004a5e00
mov ecx, dword [edi + 0x2c4]
push ecx
xor esi, esi
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test eax, eax
jle 0x4a62d8
mov edx, dword [edi + 0x2c4]
push esi
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, dword [edi + 0x2c4]
push eax
inc esi
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp esi, eax
jl 0x4a62b8
mov ecx, dword [edi + 0x284]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1009
push ecx
call esi
mov eax, dword [edi + 0x2ac]
mov edx, dword [edi + 0x2c4]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov eax, dword [edi + 0x2c]
push 1
push eax
call ebx
mov ecx, dword [edi + 0x90]
push 1
push ecx
call ebx
mov edx, dword [edi + 0xf4]
push 1
push edx
call ebx
mov eax, dword [edi + 0x284]
push 0
push 0
push 0xb
push eax
call esi
mov eax, dword [edi + 0x2ac]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x4a65c2
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea ecx, [edi + 0x280]
call fcn.00492af0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov edx, dword [0x5f5774]
mov esi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], ecx
mov ecx, 0x5f5774
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], ebx
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x13
movzx edx, word [ebp - 0x6a]
movzx eax, word [ebp - 0x66]
movzx ecx, si
push ecx
push edx
push eax
lea ecx, [ebp - 0x10]
push str._02d._02d._02d
push ecx
call fcn.004060d0
movzx edx, word [ebp - 0x62]
push edx
movzx eax, bx
push eax
lea ecx, [ebp - 0x34]
push str._d:_02d
push ecx
call fcn.004060d0
mov esi, dword [ebp - 0x10]
mov edx, dword [esi - 0xc]
lea eax, [edx + 3]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi - 8]
sub eax, dword [ebp - 0x3c]
mov ebx, 0x59cdf4
mov dword [ebp - 0x1c], ebx
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebx, esi
add esp, 0x24
sar ebx, 1
or eax, ecx
mov dword [ebp - 0x20], edx
jge 0x4a641e
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp ebx, edx
ja 0x4a6428
lea eax, [esi + ebx*2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push 6
push ecx
lea edx, [esi + edx*2]
push 6
push edx
call fcn.00554d08
mov eax, dword [ebp - 0x3c]
add esp, 0x10
test eax, eax
js 0x4a6760
cmp eax, dword [esi - 8]
jg 0x4a6760
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x28], eax
lea ebx, [edx + eax]
mov eax, 1
sub eax, dword [esi - 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [esi - 8]
sub ecx, esi
sar ecx, 1
sub eax, ebx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
jge 0x4a649c
push ebx
lea ecx, [ebp - 0x10]
call fcn.00403ca0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
ja 0x4a64a6
lea eax, [esi + ecx*2]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + edx*2]
push edx
call fcn.00554d08
add esp, 0x10
test ebx, ebx
js 0x4a6760
cmp ebx, dword [esi - 8]
jg 0x4a6760
xor eax, eax
push 0x30
push eax
lea ecx, [ebp - 0xe8]
mov dword [esi - 0xc], ebx
push ecx
mov word [esi + ebx*2], ax
call fcn.00555020
mov ebx, dword [ebp - 0x2c]
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0xec]
push edx
push eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xcc], eax
mov eax, dword [edi + 0x284]
push 0x104d
push eax
mov dword [ebp - 0xec], 3
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a655f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a657f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a65ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [edi + 0x2ac]
jb 0x4a6346
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x284]
push 0
push 1
push 0xb
push ecx
call esi
mov edx, dword [edi + 0x284]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push edx
call ebx
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xc0c0c0
call esi
push 0xf
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call esi
xor esi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], 0x64
mov dword [ebp - 0x9c], 0x5a
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x2ac], esi
jbe 0x4a6951
mov eax, dword [edi + 0x2dc]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a6951
push esi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [edi + 0x280]
call fcn.00492af0
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x70]
push 0x59e650
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.005580a0
add esp, 0xc
test eax, eax
jne 0x4a6a22
mov ecx, dword [ebp - 0x10]
push 2
push eax
push ecx
call fcn.00558678
mov edx, dword [ebp - 0x10]
push edx
call fcn.00558589
push 0
mov esi, eax
mov eax, dword [ebp - 0x10]
push 0
push eax
call fcn.00558678
add esp, 0x1c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x2d8], eax
push ecx
test eax, eax
je 0x4a69e4
push esi
push 1
push esi
push eax
call fcn.0055834a
add esp, 0x14
cmp eax, esi
jne 0x4a66f3
mov edx, dword [edi + 0x2d8]
push 0
push esi
push edx
call fcn.0050a0a0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00557d86
add esp, 0x10
mov ecx, dword [edi + 0x2d8]
push 1
push esi
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.005170a0
mov byte [ebp - 4], 0x1d
mov edx, dword [edi + 0x2d8]
push edx
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x2a8]
mov dword [edi + 0x2d8], esi
call fcn.00518030
test al, al
jne 0x4a676a
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2a8]
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00516500
mov byte [ebp - 4], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], eax
jmp 0x4a69f6
push 0x80070057
call fcn.00401150
lea ecx, [ebp - 0x2a8]
call fcn.00517fc0
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
test eax, eax
jns 0x4a6785
fadd dword [0x59bde8]
lea ecx, [ebp - 0x2a8]
fstp qword [ebp - 0x64]
call fcn.00517fd0
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
test eax, eax
jns 0x4a67a3
fadd dword [0x59bde8]
fdivr qword [ebp - 0x64]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fcom qword [0x5a3a10]
fnstsw ax
test ah, 0x41
jne 0x4a67e4
fdivr qword [0x5a3a08]
call fcn.00555c30
mov ecx, eax
mov eax, 0x64
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], 0x5a
jmp 0x4a680d
fmul qword [0x5a3a00]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0x64
call fcn.00555c30
mov ecx, eax
mov eax, 0x5a
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], eax
mov ebx, dword [edi + 4]
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 0x20
push ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x21
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x48]
push 0x5a
push 0x64
push ecx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
push 0xcc0020
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ecx
push esi
lea ecx, [ebp - 0x2a8]
call fcn.00517e30
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.USER32.dll_FrameRect]
mov ecx, dword [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edi + 0x2c4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Replace]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edi + 0x284]
push eax
push eax
push 0x1015
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 0x48], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [ebp - 4], 0x18
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
lea ecx, [ebp - 0x2a8]
call fcn.00516500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a6938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [edi + 0x2ac]
jb 0x4a6633
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
mov eax, dword [edi + 0x2c]
push 1
push 0
push eax
call ebx
mov ecx, dword [edi + 0x90]
push 1
push 0
push ecx
call ebx
mov edx, dword [edi + 0xf4]
push 1
push 0
push edx
call ebx
mov eax, dword [edi + 0x158]
push 1
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1bc]
push 1
push 0
push ecx
call ebx
mov dword [edi + 0x2c8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a69d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call fcn.00557d86
add esp, 4
mov byte [ebp - 4], 0
lea edx, [ebp - 0x70]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a693e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a693e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4a6a0d