Function at 0x1033763
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xf4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], edx
test edx, edx
je 0x10337a8
mov ecx, dword [0x1038258]
mov ax, word [esi]
sub ax, word [ecx + 0xc]
mov di, word [esi + 2]
sub di, word [ecx + 0xe]
sub ax, word [edx + 0x10]
sub di, word [edx + 0x12]
mov word [ebp - 0x50], ax
mov word [ebp - 0x4e], di
jmp 0x10337ac
mov di, word [ebp - 0x4e]
movzx eax, word [esi]
test ax, ax
je 0x10337c1
test byte [ebx + 0xf0], 1
je 0x10337c1
dec eax
mov word [esi], ax
movzx eax, word [esi + 4]
movsx edx, word [ebx + 8]
movsx ecx, ax
inc ecx
cmp ecx, edx
jge 0x10337df
test byte [ebx + 0xf0], 4
je 0x10337df
inc eax
mov word [esi + 4], ax
and byte [ebx + 0xf0], 0xfa
cmp word [0x10382f8], 0
mov eax, dword [0x10383dc]
mov dword [0x10383e0], eax
jne 0x1033dea
push 1
call fcn.01002f2e
push esi
push ebx
call fcn.01033212
test eax, eax
je 0x103381c
push esi
push ebx
call fcn.010332ba
jmp 0x1033de1
cmp dword [ebp - 0xc], 0
movzx ecx, word [esi + 2]
je 0x1033843
mov eax, dword [0x1038258]
mov dx, cx
sub dx, word [eax + 0xe]
mov word [ebp - 6], dx
mov dx, word [esi]
sub dx, word [eax + 0xc]
mov word [ebp - 8], dx
jmp 0x1033859
mov ax, cx
sub ax, word [ebx + 0xe]
mov word [ebp - 6], ax
mov ax, word [esi]
sub ax, word [ebx + 0xc]
mov word [ebp - 8], ax
cmp dword [ebp - 0xc], 0
je 0x1033864
movzx eax, di
jmp 0x1033877
movsx eax, word [ebx + 0x44]
movsx edi, word [ebx + 0xa]
movsx edx, cx
add eax, edx
cdq
idiv edi
movzx eax, dx
mov dword [ebp - 0x1c], eax
movzx eax, word [esi + 4]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp cx, word [esi + 6]
mov ecx, dword [0x1038030]
sete al
add ecx, 0x300000
mov dword [ebp - 0x3c], eax
mov eax, dword fs:[0x18]
movsx edx, word [ebx + 8]
mov eax, dword [eax + 0x30]
lea edx, [edx + edx + 2]
push edx
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x10338e0
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100ecb8
push 1
push 0x70
call esi
push 0x100aba8
push 1
push 0x70
call esi
add esp, 0x18
jmp 0x1033e92
movsx eax, word [esi + 2]
movsx ecx, word [esi + 6]
cmp eax, ecx
mov dword [ebp - 0x28], eax
jg 0x1033dc1
mov esi, dword [ebp + 0xc]
mov ax, word [ebp - 0x30]
lea edi, [esi + 4]
mov word [edi], ax
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0x1c
add eax, dword [ebx + 0x3c]
xor ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x14], eax
cmp word [eax + 0x10], cx
jne 0x103392d
mov esi, dword [eax + 0x18]
movzx eax, word [ebx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
jmp 0x1033950
movsx ecx, word [ebp - 0x50]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0xc], edx
jne 0x103393c
movsx ecx, word [esi]
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x18]
push edx
push ecx
push dword [eax + 0x18]
call fcn.010042b9
mov esi, dword [ebp - 0x18]
movzx eax, word [esi + 2]
cmp word [0x10382c8], ax
je 0x10339dc
test eax, 0x4000
movzx eax, byte [esi + 2]
je 0x103399e
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetBkColor]
movzx eax, word [esi + 2]
shr ax, 4
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x10339d2
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetTextColor]
movzx eax, word [esi + 2]
shr ax, 4
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ax, word [esi + 2]
mov word [0x10382c8], ax
mov eax, dword [ebx + 0x74]
movsx ecx, word [ebp - 6]
shr eax, 0x10
cwde
imul eax, ecx
mov ecx, dword [ebx + 0x74]
shr ecx, 0x10
movsx ecx, cx
add ecx, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
movsx eax, word [eax]
mov dword [ebp - 0x54], ecx
movsx ecx, word [edi]
cmp eax, ecx
mov dword [ebp + 8], eax
jg 0x1033d8e
mov edi, dword [ebp + 0xc]
mov ax, word [edi + 4]
sub ax, word [ebp + 8]
inc ax
cmp word [ebp - 4], ax
jle 0x1033a28
movzx eax, ax
mov dword [ebp - 4], eax
movzx eax, word [ebp - 4]
mov dword [ebp - 0x2c], eax
xor eax, eax
test dword [0x10382cc], 0x200
mov dword [ebp - 0x20], eax
je 0x1033a7b
mov ecx, dword [0x10383d0]
cmp dword [ecx], eax
je 0x1033a7b
cmp dword [ebp - 0xc], eax
je 0x1033a5d
movsx ecx, word [edi]
movsx eax, word [ebp - 0x50]
sub eax, ecx
add eax, dword [ebp + 8]
jmp 0x1033a60
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 8]
push dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
call fcn.01026981
mov dword [ebp - 0x20], eax
jmp 0x1033a7e
mov esi, dword [ebp - 0x14]
test byte [ebx], 4
jne 0x1033ada
test byte [0x10382f8], 1
jne 0x1033ada
mov eax, dword [0x10383d0]
xor ecx, ecx
cmp dword [eax + 4], ecx
je 0x1033ada
cmp dword [ebp - 0xc], ecx
je 0x1033aab
movsx edx, word [edi]
movsx eax, word [ebp - 0x50]
sub eax, edx
add eax, dword [ebp + 8]
jmp 0x1033aae
mov eax, dword [ebp + 8]
mov edx, dword [esi + 8]
lea eax, [edx + eax*2]
xor edx, edx
cmp dx, word [ebp - 4]
jge 0x1033ada
cmp word [eax], 0x20
jb 0x1033acd
inc ecx
inc eax
inc eax
cmp cx, word [ebp - 4]
jge 0x1033ada
jmp 0x1033abc
movzx eax, cx
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
test byte [ebx + 0x68], 1
je 0x1033bd1
cmp dword [ebp - 0x24], 0
je 0x1033bd1
movzx eax, word [esi + 6]
cmp ax, 0xffff
je 0x1033b2a
movzx edx, word [esi + 4]
cmp dx, ax
movsx ecx, dx
jl 0x1033b07
movsx ecx, ax
cmp ecx, dword [ebp + 8]
jle 0x1033b1b
cmp dx, ax
jge 0x1033b16
movsx ecx, dx
jmp 0x1033b1e
movsx ecx, ax
jmp 0x1033b1e
mov ecx, dword [ebp + 8]
movsx edx, word [ebx + 0xc]
mov eax, dword [ebx + 0x74]
sub ecx, edx
cwde
jmp 0x1033b32
movsx ecx, word [ebx + 0x74]
movsx eax, word [ebp - 8]
imul ecx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x60], ecx
cmp ax, 0xffff
je 0x1033b7d
movzx ecx, word [esi]
cmp cx, ax
movsx edx, cx
jg 0x1033b50
movsx edx, ax
movsx edi, word [ebp - 4]
mov ecx, dword [ebp + 8]
lea eax, [ecx + edi]
cmp edx, eax
jge 0x1033b6e
movzx eax, word [esi]
movzx edx, word [esi + 2]
cmp ax, dx
cwde
jg 0x1033b6e
movsx eax, dx
movsx edx, word [ebx + 0xc]
sub eax, edx
movsx edx, word [ebx + 0x74]
imul eax, edx
jmp 0x1033b8d
mov eax, dword [ebx + 0x74]
movsx edi, word [ebp - 4]
cwde
imul eax, edi
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], eax
movsx eax, word [esi + 4]
cmp eax, ecx
movzx eax, ax
jg 0x1033b9e
movzx eax, cx
mov dword [ebp - 0x10], eax
lea eax, [ecx + edi]
movsx ecx, word [esi]
cmp ecx, eax
jge 0x1033bb0
movzx eax, cx
jmp 0x1033bb3
movzx eax, ax
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x74]
movsx esi, word [ebx + 0xc]
movzx edx, ax
movsx eax, word [ebp - 0x10]
movsx ecx, cx
sub eax, esi
imul eax, ecx
jmp 0x1033c5c
cmp dword [ebp - 0xc], 0
je 0x1033be7
mov ax, word [ebp + 8]
sub ax, word [edi]
add ax, word [ebp - 0x50]
movzx eax, ax
jmp 0x1033beb
movzx eax, word [ebp + 8]
movsx esi, word [ebx + 0x74]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
movsx eax, word [ebp - 8]
imul esi, eax
mov eax, dword [ebx + 0x74]
cwde
movsx edi, dx
imul eax, edi
add eax, esi
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], eax
je 0x1033c40
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
sub edx, eax
add edx, dword [ebp - 4]
mov dword [ebp - 0x34], eax
add edx, dword [ebp - 0x50]
cmp cx, dx
jg 0x1033c50
sub ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x50]
add ecx, eax
movzx edx, cx
jmp 0x1033c5a
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov ecx, dword [ebp + 8]
add edx, ecx
cmp ax, dx
jle 0x1033c55
movzx edx, di
jmp 0x1033c5a
sub eax, ecx
movzx edx, ax
mov eax, esi
test dx, dx
jge 0x1033c7d
movsx esi, word [ebp - 8]
movsx ecx, word [ebx + 0x74]
imul ecx, esi
movsx esi, word [ebx + 0x74]
imul esi, edi
xor edx, edx
add esi, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], esi
push edx
sub esp, 0x10
mov edi, esp
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push dword [ebp - 0x18]
lea esi, [ebp - 0x60]
push dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01036ec0
cmp dword [ebp - 0x3c], 0
je 0x1033cc2
cmp dword [ebp - 0x24], 0
jne 0x1033d8e
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
movsx eax, cx
add dword [ebp + 8], eax
add edi, 4
movsx eax, word [edi]
cmp dword [ebp + 8], eax
jg 0x1033d82
mov eax, dword [ebp - 0x2c]
add word [ebp - 8], cx
cmp cx, ax
mov esi, dword [ebp - 0x18]
jge 0x1033cf3
sub eax, ecx
movzx eax, ax
jmp 0x1033cfc
add esi, 4
movzx eax, word [esi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
mov eax, 0x4000
test word [esi + 2], ax
movzx eax, byte [esi + 2]
je 0x1033d44
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetBkColor]
movzx eax, word [esi + 2]
shr ax, 4
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x1033d78
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetTextColor]
movzx eax, word [esi + 2]
shr ax, 4
and eax, 0xf
push dword [eax*4 + 0x1038348]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ax, word [esi + 2]
mov word [0x10382c8], ax
movsx eax, word [edi]
cmp dword [ebp + 8], eax
jle 0x1033a0f
mov ecx, dword [ebp + 0xc]
mov ax, word [ecx]
sub ax, word [ebx + 0xc]
inc dword [ebp - 0x1c]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x1c]
cmp ax, word [ebx + 0xa]
jne 0x1033dad
and dword [ebp - 0x1c], 0
movsx eax, word [ecx + 6]
inc dword [ebp - 0x28]
inc word [ebp - 6]
cmp dword [ebp - 0x28], eax
jle 0x10338f3
call dword [sym.imp.GDI32.dll_GdiFlush]
push dword [ebp - 0x40]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp + 0xc]
push 0
call fcn.01002f2e
jmp 0x1033e17
test byte [0x10382f8], 2
je 0x1033e17
cmp dword [ebx + 0xf4], 0
jne 0x1033e06
cmp dword [0x1038258], ebx
je 0x1033e10
jmp 0x1033e17
mov eax, dword [0x1038258]
test byte [eax], 1
je 0x1033e17
push esi
push ebx
call fcn.01034f1f
mov al, byte [ebx + 0xf0]
test al, 2
je 0x1033e53
and al, 0xfd
mov byte [ebx + 0xf0], al
movzx eax, word [esi + 2]
test ax, ax
je 0x1033e53
dec eax
mov word [ebp - 0x46], ax
mov word [ebp - 0x42], ax
mov ax, word [ebx + 8]
dec ax
mov word [ebp - 0x48], ax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.01033763
mov al, byte [ebx + 0xf0]
test al, 8
je 0x1033e92
movsx edx, word [ebx + 0xa]
and al, 0xf7
mov byte [ebx + 0xf0], al
movzx eax, word [esi + 6]
movsx ecx, ax
inc ecx
cmp ecx, edx
jge 0x1033e92
inc eax
mov word [ebp - 0x46], ax
mov word [ebp - 0x42], ax
xor eax, eax
mov word [ebp - 0x48], ax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.01033763
pop edi
pop esi
pop ebx
leave
ret 8