Function at 0x105ab91
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov esi, ecx
push 0x10c5db4
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x10c6244]
mov ebx, dword [esi + 0x44]
neg ebx
xor edi, edi
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
call fcn.0104a565
mov eax, dword [ebp + 0x18]
or dword [ebp - 0x38], 0xffffffff
and al, 2
movzx eax, al
neg eax
sbb eax, eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
and eax, ecx
mov dword [ebp - 0x8c], edi
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x34], 0x7fffffff
mov dword [ebp - 0x60], eax
mov dword [ebp - 8], edi
call fcn.0105eb36
push dword [edi + 0x28]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x44], eax
call fcn.0104a670
lea ecx, [esi + 4]
mov dword [ebp - 0x1c], ecx
call fcn.01056915
test eax, eax
jne 0x105ac53
xor esi, esi
mov ecx, dword [ebp - 0xb0]
call fcn.01050f49
dec dword [0x10c6244]
push 0x10c5db4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
test byte [edi + 0x72], 0x20
jne 0x105ac60
and dword [ebp + 0x1c], 0xfffffe0
test byte [edi + 0x50], 0x40
je 0x105ac6a
or dword [ebp + 0x18], 8
test dword [ebp + 0xc], 0x200
je 0x105ac7a
or dword [ebp + 0x18], 0x10000
mov eax, dword [esi + 0x44]
test eax, eax
jle 0x105ac8f
mov ecx, eax
neg ecx
mov ebx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
jmp 0x105acf9
jge 0x105ac9b
lea ecx, [esi + 0x2c]
call fcn.0105e81a
jmp 0x105acf9
test ebx, ebx
jne 0x105acf9
test byte [ebp + 0xc], 0xa
je 0x105acf9
lea ecx, [esi + 0xc]
call fcn.010564d2
test eax, eax
je 0x105acf9
mov ecx, dword [ebp - 0x1c]
call fcn.01056893
cmp word [eax + 0x38], bx
jne 0x105acf9
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0xac]
call fcn.01055bf4
push 2
lea ecx, [ebp - 0xac]
call fcn.010561ee
mov ebx, eax
lea ecx, [esi + 0x2c]
mov dword [ebp - 0xc], ebx
call fcn.0105e81a
or dword [ebp + 0x18], 0x1000
mov dword [ebp - 0x8c], 1
mov eax, dword [esi + 0x1c]
test byte [eax + 0x4c], 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
jne 0x105ad11
movzx eax, byte [eax + 0x72]
and eax, 1
jne 0x105ad31
test dword [ebp + 0x14], 0x20000000
je 0x105ad31
call fcn.010528c3
test eax, eax
je 0x105ad2e
push 1
push 1
mov ecx, edi
call fcn.0104b703
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
test edx, 0xb000001f
je 0x105adab
test byte [edi + 0x4c], 0x10
jne 0x105ad4b
movzx eax, byte [edi + 0x72]
and eax, 1
jne 0x105adab
movzx eax, word [ecx + 0x34]
and eax, edx
test al, 0x1f
jne 0x105ad8d
test edx, 0x10000000
je 0x105ad63
cmp byte [ecx + 0x3b], 0
jne 0x105ad8d
test edx, edx
jns 0x105ad6d
cmp byte [ecx + 0x39], 0
jne 0x105ad8d
test edx, 0x20000000
je 0x105adab
cmp byte [ecx + 0x38], 0
je 0x105adab
mov eax, dword [edi + 0x44]
test eax, eax
je 0x105ad87
mov eax, dword [eax + 0x1c]
jmp 0x105ad89
xor eax, eax
test eax, eax
je 0x105adab
test edx, 0xffffffe3
jne 0x105ada0
mov eax, 0x8000
or word [edi + 0x56], ax
jmp 0x105adab
push 1
push 1
mov ecx, edi
call fcn.0104b703
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.010520df
mov dword [ebp - 0x98], eax
test ebx, ebx
je 0x105b740
and dword [ebp - 0x64], 0
test dword [ebp + 0xc], 0x40000000
jne 0x105ae70
mov ecx, edi
call fcn.0104a8e1
mov dword [ebp - 0x64], eax
test eax, eax
je 0x105ae70
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x40], edi
call fcn.01056893
cmp word [eax + 0x38], 0
je 0x105ae4e
mov ecx, 0x400
test word [eax + 0x2a], cx
jne 0x105ae4e
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0105a3fe
mov ecx, esi
call fcn.0105a00f
cmp dword [ebp - 0x54], eax
jg 0x105ae4e
sub edi, dword [ebp - 0x14]
add edi, ebx
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x2c]
add eax, edi
push eax
push edi
push 0
push 0
push 0x3fffffff
push dword [ebp - 0x1c]
call fcn.01060c03
push dword [ebp - 0x10]
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.0105e654
push edi
lea ecx, [ebp - 0x7c]
call fcn.0105e58c
mov edi, dword [esi + 0x18]
add edi, dword [ebp - 0x10]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x20], edi
je 0x105af32
mov ecx, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.0104a39c
test eax, eax
je 0x105aeed
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x170]
call fcn.01056f45
cmp dword [ebp - 0x10], esi
je 0x105aed9
push dword [ebp - 0x10]
lea ecx, [ebp - 0x13c]
call fcn.0105e654
push dword [ebp - 0x10]
lea ecx, [ebp - 0x168]
call fcn.010669c2
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
lea ecx, [ebp - 0x170]
call fcn.01056fbf
mov esi, eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.0105e654
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp - 0x44]
sub eax, esi
add eax, ebx
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [esi + edi]
push eax
push dword [ebp - 8]
mov ecx, 0x10c6404
call fcn.01067837
neg esi
push esi
lea ecx, [ebp - 0x7c]
mov edi, eax
call fcn.0105e654
test edi, edi
je 0x105af32
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov edi, dword [ebp + 8]
mov bl, byte [edi + 4]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
movzx esi, bl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x54], eax
call fcn.0104a437
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
add esi, 0xfffffff4
push 3
pop eax
cmp eax, esi
sbb eax, eax
inc eax
mov dword [ebp - 0xb4], eax
mov eax, 0x100
and ecx, eax
mov dword [ebp - 0x58], ecx
mov ecx, dword [edi]
and ecx, dword [ebp + 0x14]
mov edx, ecx
and edx, eax
mov dword [ebp - 0xb8], edx
test ecx, 0x10000000
je 0x105afa2
test dword [ebp + 0x18], 0x10000
je 0x105afa2
mov dword [ebp - 0x80], 1
jmp 0x105afa6
and dword [ebp - 0x80], 0
cmp bl, 0xa
je 0x105afb6
cmp bl, 0x11
je 0x105afb6
and dword [ebp - 0x3c], 0
jmp 0x105afbd
mov dword [ebp - 0x3c], 1
xor eax, eax
xor esi, esi
mov dword [ebp - 0xac], esi
lea edi, [ebp - 0xa8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
xor ebx, ebx
add eax, 0xc
inc ebx
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x84], ebx
call fcn.01066c6a
mov edi, dword [ebp - 8]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x6c], esi
cmp dword [ebp - 0x58], esi
jne 0x105b02e
mov eax, 0x8000
test word [edi + 0x54], ax
je 0x105b05c
test dword [ebp + 0x14], 0x20000000
je 0x105b05c
test byte [edi + 0x56], 0x80
mov dword [ebp - 0x58], ebx
je 0x105b02e
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 4], al
mov dword [ebp - 0x90], ebx
sete al
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x3c], esi
jne 0x105b05c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
movsx eax, word [ebx + 6]
push eax
call fcn.01053f5d
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
jne 0x105b05c
movzx eax, byte [ebx + 4]
push eax
call fcn.0104e181
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, 0x8000
test word [edi + 0x54], ax
je 0x105b077
test dword [ebp + 0x18], 0x2000
jne 0x105b077
or dword [ebp + 0x18], 0x1000
cmp dword [ebp - 0xc], esi
jle 0x105b641
mov eax, dword [ebp - 0x7c]
mov ebx, 0xfffffeff
cmp eax, esi
je 0x105b641
cmp dword [eax + 4], esi
je 0x105b641
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x5c], 1
call fcn.010604bc
cwde
push eax
mov ecx, edi
call fcn.0104b0dc
cmp dword [ebp - 0x98], 0
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
je 0x105b0da
mov eax, dword [ebp + 8]
movsx eax, word [eax + 0x20]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0105253d
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebp - 0xb8], edi
je 0x105b1b8
test dword [ebp - 0xf8], 0x800000
jne 0x105b1c9
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x105b110
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], edi
jmp 0x105b1c9
push dword [ebp - 0x20]
lea ecx, [ebp - 0x118]
call fcn.01066997
lea ecx, [ebp - 0x7c]
call fcn.0105e848
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x105b1aa
lea ecx, [ebp - 0x118]
call fcn.01055e79
movzx eax, ax
cmp ax, 7
je 0x105b198
movzx esi, ax
push 2
lea eax, [esi - 0xfff9]
pop edi
cmp eax, edi
ja 0x105b164
push 0
lea ecx, [ebp - 0x118]
call fcn.01055f76
test eax, eax
jne 0x105b1a4
push 0
lea ecx, [ebp - 0x118]
call fcn.01066a97
add esi, 0xfffffff6
mov edi, eax
cmp esi, 3
ja 0x105b18f
push 0xfff9
lea ecx, [ebp - 0x118]
call fcn.01055f76
test eax, eax
jne 0x105b1a1
add ebx, edi
cmp ebx, dword [ebp - 0x48]
jl 0x105b12f
jmp 0x105b1aa
mov dword [ebp - 0x24], 1
jmp 0x105b1a7
add edi, 2
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0
je 0x105b5d7
xor edi, edi
jmp 0x105b1cc
mov ecx, dword [ebp - 0xf8]
mov eax, 0x800120
and ecx, eax
cmp ecx, eax
jne 0x105b1cc
and dword [ebp + 0x14], ebx
mov esi, 0x40000
test dword [ebp - 0xf8], esi
je 0x105b1e5
and dword [ebp + 0x14], 0xd5ffffff
jmp 0x105b45a
cmp dword [ebp - 0x80], edi
je 0x105b235
movzx eax, byte [ebp - 0xf4]
sub eax, 0x34
cmp eax, 1
jbe 0x105b206
cmp byte [ebp - 0xf4], 0
jne 0x105b45a
lea ecx, [ebp - 0xf8]
call fcn.0105291b
test eax, eax
jne 0x105b45a
or dword [ebp + 0x14], 0x20000000
push edi
lea eax, [ebp - 0xf2]
push eax
push edi
push 0x34
call fcn.0104da10
jmp 0x105b45a
cmp dword [ebp - 0x58], edi
je 0x105b45a
lea ecx, [ebp - 0x7c]
call fcn.0105e848
cmp dword [ebp - 4], eax
jl 0x105b24e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x105b259
mov dword [ebp - 4], eax
mov dl, byte [ebp - 0xf4]
cmp dl, 0xa
jne 0x105b2a9
test byte [ebp + 0x18], 1
je 0x105b2b2
mov eax, dword [ebp + 8]
cmp byte [eax + 4], dl
je 0x105b2b2
and dword [ebp + 0x14], 0xf7ffffff
test dword [ebp + 0x14], 0x20000000
je 0x105b45a
movsx eax, word [eax + 6]
push edi
push eax
call fcn.01053f5d
cmp eax, esi
jne 0x105b29d
cmp edx, edi
je 0x105b45a
and dword [ebp + 0x14], 0xdfffffff
jmp 0x105b45a
cmp dl, 0x11
je 0x105b2b2
xor eax, eax
jmp 0x105b2b5
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x3c]
xor eax, ecx
je 0x105b30f
cmp ecx, edi
je 0x105b2c4
mov al, dl
jmp 0x105b2ca
mov eax, dword [ebp + 8]
mov al, byte [eax + 4]
movzx eax, al
cmp eax, 0xb
ja 0x105b317
or dword [ebp + 0x14], 0x8000000
cmp ecx, edi
je 0x105b2e5
mov byte [ebp - 0xce], al
jmp 0x105b2fc
mov al, byte [ebp - 0xce]
cmp al, 0xb
ja 0x105b2fc
and dword [ebp + 0x14], 0xf7ffffff
mov byte [ebp - 0xf4], al
push dword [ebp - 0x20]
lea ecx, [ebp - 0x118]
call fcn.01066997
jmp 0x105b45a
cmp ecx, edi
jne 0x105b45a
movzx eax, dl
push eax
call fcn.0104e181
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
and eax, ecx
and edx, esi
and eax, 0xffffff3f
or eax, edx
mov dword [ebp - 0x18], 1
jne 0x105b33d
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0xb4], edi
jne 0x105b35b
and ecx, 0xf00000
and esi, 0x78000000
mov eax, ecx
or eax, esi
jne 0x105b35b
xor edi, edi
jmp 0x105b35e
xor edi, edi
inc edi
push dword [ebp - 0x20]
and dword [ebp + 0x14], 0xf7ffffff
lea ecx, [ebp - 0x118]
call fcn.01066997
lea ecx, [ebp - 0x118]
call fcn.01055e79
mov ecx, 0x80
cmp ax, cx
sbb esi, esi
neg esi
je 0x105b390
or dword [ebp + 0x18], 8
movzx eax, byte [ebp - 0xf4]
lea ecx, [eax - 0xc]
cmp ecx, 3
jbe 0x105b3ab
lea ecx, [eax - 0x2f]
cmp ecx, 3
jbe 0x105b3ab
xor ebx, ebx
jmp 0x105b3ae
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x70], 0
jne 0x105b3be
push eax
call fcn.0104a437
test eax, eax
je 0x105b3c4
cmp dword [ebp - 0x6c], 0
je 0x105b427
test esi, esi
je 0x105b427
mov eax, dword [ebp - 0x50]
mov ecx, 0xc0
and eax, ecx
xor edx, edx
cmp eax, ecx
jne 0x105b3dc
test edx, edx
je 0x105b3e5
test edi, edi
jne 0x105b3e5
cmp dword [ebp - 0x3c], edi
je 0x105b427
cmp dword [ebp - 0x90], 0
je 0x105b403
test ebx, ebx
jne 0x105b403
mov eax, dword [ebp + 8]
cmp byte [eax + 4], bl
je 0x105b403
and dword [ebp + 0x14], 0xdfffffff
jmp 0x105b444
cmp dword [ebp - 0x18], 0
je 0x105b41e
cmp dword [ebp - 0x6c], 0
jne 0x105b41e
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x105b444
test byte [ebp + 0x18], 1
je 0x105b444
or dword [ebp + 0x14], 0x8000000
jmp 0x105b444
cmp dword [ebp - 0x18], 0
jne 0x105b444
cmp byte [ebp - 0xf4], 9
je 0x105b444
and dword [ebp + 0x14], 0xdfffffff
and dword [ebp + 0x18], 0xffefffff
push esi
push 0x7f
push 0
push dword [ebp - 4]
lea ecx, [ebp - 0x118]
call fcn.01066afd
sub dword [ebp - 4], eax
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
and eax, 0x8000000
push 0x10
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x9c]
pop ecx
lea esi, [ebp - 0xf8]
lea edi, [ebp - 0x170]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x68], eax
xor ebx, ebx
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
jle 0x105b4e8
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x5c], ebx
je 0x105b4b5
and dword [ebp + 0x14], 0xd7ffffff
and dword [ebp + 0x18], 0xffefffff
mov dword [ebp - 0x5c], ebx
jmp 0x105b4d7
or dword [ebp + 0x14], 0x20000000
cmp byte [ebp - 0xf4], 9
mov dword [ebp - 0x5c], eax
je 0x105b4d7
cmp dword [ebp - 0x94], ebx
je 0x105b4d7
or dword [ebp + 0x14], 0x8000000
push 0x10
pop ecx
lea esi, [ebp - 0x170]
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x94], ebx
je 0x105b4ff
test eax, 0x8000000
jne 0x105b4ff
and eax, 0xfdffffff
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xf8]
push dword [ebp + 0x18]
push eax
push dword [ebp + 8]
call fcn.01052a4d
mov esi, eax
cmp esi, ebx
jne 0x105b5e7
mov edi, dword [ebp - 0x44]
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x105b5e7
cmp dword [ebp - 0x84], ebx
je 0x105b55a
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
push ebx
push dword [eax + 0x28]
mov dword [ebp - 0x84], ebx
call fcn.01060cac
push dword [ebp - 0x60]
lea ecx, [ebp - 0x7c]
push ebx
push edi
push dword [ebp - 4]
push dword [ebp - 0x30]
call fcn.0106032d
mov esi, eax
cmp esi, dword [ebp - 4]
jge 0x105b57a
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x30]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], esi
call dword [eax + 4]
cmp esi, 0x3fffffff
je 0x105b60b
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x88], ebx
je 0x105b5ad
cmp ecx, dword [ebp - 0x34]
jge 0x105b5a2
mov dword [ebp - 0x34], ecx
lea eax, [esi + ecx]
cmp eax, dword [ebp - 0x38]
jle 0x105b5ad
mov dword [ebp - 0x38], eax
sub dword [ebp - 0xc], esi
add dword [ebp - 0x68], 4
add ecx, esi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 1
mov dword [ebp - 0x20], ecx
jg 0x105b5cb
cmp dword [ebp - 0x48], ebx
jne 0x105b48d
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x18], eax
cmp dword [ebp - 0xc], 0
jle 0x105b641
mov edi, dword [ebp - 8]
xor esi, esi
jmp 0x105b080
cmp dword [ebp - 0xac], ebx
je 0x105b5fb
push dword [ebp - 0xac]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x9c]
call fcn.01055a42
jmp 0x105ac2e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp ecx, ebx
je 0x105b61a
call fcn.0105f450
cmp dword [ebp - 0xac], ebx
je 0x105b62e
push dword [ebp - 0xac]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x9c]
call fcn.01055a42
xor esi, esi
inc esi
jmp 0x105ac2e
xor esi, esi
cmp dword [ebp - 0xac], esi
je 0x105b657
push dword [ebp - 0xac]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x9c]
call fcn.01055a42
mov edi, dword [ebp - 0x28]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call fcn.0105e7f0
lea ecx, [ebp - 0x7c]
call fcn.0105e81a
push dword [ebp - 0x44]
lea ecx, [ebp - 0x7c]
push dword [edi + 0x30]
call fcn.010609b0
test eax, eax
je 0x105b69d
cmp dword [ebp - 0x60], esi
je 0x105b69d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.01059fcb
mov ecx, ebx
cmp dword [ebp - 0x10], esi
je 0x105b6b1
mov eax, dword [ebp - 0x10]
neg eax
push eax
call fcn.0105e654
jmp 0x105b6b6
call fcn.0105e81a
mov ecx, dword [ebp - 0x64]
cmp ecx, esi
je 0x105b705
test dword [ebp + 0x1c], 0xffffffbf
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x128], eax
je 0x105b6e2
mov dword [ebp - 0x130], 2
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push esi
push esi
push 0x3fffffff
push dword [ebp - 0x1c]
call fcn.01060c45
cmp dword [ebp + 0x10], esi
je 0x105b72b
test dword [ebp + 0xc], 0x80000000
jne 0x105b72b
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x18]
push esi
push 2
push eax
push ecx
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.0105831b
cmp dword [edi + 0x44], esi
jne 0x105b807
cmp dword [ebp - 0x8c], esi
je 0x105b7fc
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
or dword [ebp + 0x18], 0x1000
mov dword [ebp + 0xc], eax
movsx eax, word [ebx + 0x4c]
push eax
call fcn.0104b0dc
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0xf8], 0x20
je 0x105b78b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
je 0x105b78b
test byte [eax + 0x4e], 1
jne 0x105b78b
mov eax, dword [ebp + 0x14]
and eax, 0xffffffdf
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x98], 0
je 0x105b7a7
mov eax, dword [ebp + 8]
movsx eax, word [eax + 0x20]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0105253d
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xf8]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01052a4d
test eax, eax
je 0x105b7c9
mov esi, eax
jmp 0x105ac2e
mov esi, dword [ebp - 0x44]
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x105b7c2
movsx ecx, word [ebx + 0x4c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ax, word [ebp - 0x30]
mov word [ebx + 0x4c], ax
mov edi, ebx
xor esi, esi
jmp 0x105b817
push 0xffffffffffffffff
mov ecx, edi
call fcn.0105b8b6
xor esi, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp ecx, esi
je 0x105b817
push esi
call fcn.0105f39b
test byte [edi + 0x50], 0x40
mov ebx, dword [ebp - 8]
je 0x105b835
test dword [ebx + 0x4c], 0x80000
jne 0x105b835
mov ecx, dword [ebx + 0x3c]
cmp ecx, esi
je 0x105b835
call fcn.0105f428
test dword [ebp + 0x18], 0x2800
jne 0x105b883
cmp dword [ebp - 0x2c], esi
je 0x105b883
cmp dword [ebp - 0xc], esi
jne 0x105b883
mov ecx, ebx
call fcn.0104a3ba
test eax, eax
je 0x105b883
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x3c], 0x7f
je 0x105b883
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x170]
call fcn.01056f45
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
add ecx, eax
push ecx
lea ecx, [ebp - 0x170]
call fcn.010567c0
jmp 0x105ac2e
cmp dword [ebp - 0x60], esi
je 0x105b8a4
cmp dword [ebp - 0x38], esi
mov ecx, edi
jge 0x105b895
push esi
push dword [edi + 0x18]
jmp 0x105b89f
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x34]
call fcn.0105be1a
xor eax, eax
cmp dword [ebp - 0xc], esi
setne al
jmp 0x105b7c2