Function at 0x1003b180
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1004c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov byte [ebp - 0x1c], 0xe8
push esi
xor ch, ch
mov dword [ebp - 0x58], ebx
xor al, al
mov dword [ebp - 0x1b], 0
push edi
xor edi, edi
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], 0
mov word [ebp - 0x14], 0x800f
mov dword [ebp - 0x12], 0
mov byte [ebp - 0x3a], ch
mov byte [ebp - 0x39], al
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x40], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
movzx esi, ch
lea edx, [ebp - 0x38]
add esi, dword [ebx]
movzx ecx, al
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [ebp - 0x54], ecx
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.10039c30
test dword [ebp - 0x20], 0x1000
mov ecx, eax
mov dword [ebp - 0x44], ecx
jne 0x1003b4af
cmp byte [ebp - 0x3a], 5
mov dword [ebp - 0x48], esi
jb 0x1003b22a
mov eax, esi
mov dword [ebp - 0x40], 1
sub eax, dword [ebp - 0x4c]
mov ecx, 5
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0xc]
jmp 0x1003b346
mov dl, byte [ebp - 0x32]
cmp dl, 0xe8
jne 0x1003b251
movzx eax, byte [ebp - 0x38]
mov ecx, 5
sub eax, dword [ebp - 0x4c]
add eax, 0xfffffffb
add eax, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x1b], eax
lea eax, [ebp - 0x1c]
jmp 0x1003b346
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x1003b2ac
movzx ecx, byte [ebp - 0x38]
add ecx, esi
cmp dl, 0xeb
jne 0x1003b26c
movsx eax, byte [ebp - 0x28]
add ecx, eax
jmp 0x1003b26f
add ecx, dword [ebp - 0x28]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x1003b28e
add eax, 5
cmp ecx, eax
jae 0x1003b28e
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edi
jmp 0x1003b34c
sub ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0xc]
sub ecx, 5
cmp esi, edi
mov dword [ebp - 0xb], ecx
mov ecx, 5
sbb edx, edx
inc edx
mov dword [ebp - 0x40], edx
jmp 0x1003b346
mov dh, byte [ebp - 0x31]
mov ah, dl
and ah, 0xf0
cmp ah, 0x70
je 0x1003b2db
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1003b2db
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x1003b2db
and dl, 0xfe
cmp dl, 0xc2
jne 0x1003b34c
cmp esi, edi
sbb edx, edx
inc edx
mov dword [ebp - 0x40], edx
jmp 0x1003b34c
mov al, byte [ebp - 0x38]
movzx ecx, al
add ecx, esi
cmp ah, 0x70
je 0x1003b2f5
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1003b2f5
add ecx, dword [ebp - 0x28]
jmp 0x1003b2fb
movsx eax, byte [ebp - 0x28]
add ecx, eax
mov eax, dword [ebx]
cmp eax, ecx
ja 0x1003b317
add eax, 5
cmp ecx, eax
jae 0x1003b317
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edi
jmp 0x1003b34c
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1003b4af
movzx eax, dl
cmp dl, 0xf
jne 0x1003b32e
movzx eax, dh
sub ecx, dword [ebp - 0x4c]
and al, 0xf
or al, 0x80
sub ecx, 6
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12], ecx
mov ecx, 6
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp esi, edi
jae 0x1003b35c
movzx eax, byte [ebp - 0x38]
cmp ecx, eax
jne 0x1003b4af
mov esi, dword [ebp - 0x54]
lea eax, [esi + ecx]
cmp eax, dword [ebx + 8]
ja 0x1003b4af
mov eax, dword [ebx + 0x10]
cmp eax, 8
jae 0x1003b4af
mov dl, byte [ebp - 0x3a]
mov byte [eax + ebx + 0x14], dl
mov eax, dword [ebx + 0x10]
mov dl, byte [ebp - 0x39]
mov byte [eax + ebx + 0x1c], dl
mov al, dl
mov edi, dword [ebx + 4]
inc dword [ebx + 0x10]
add edi, esi
mov esi, dword [ebp - 0x48]
add al, byte [ebp - 0x44]
rep movsb byte es:[edi], byte [esi]
mov ch, byte [ebp - 0x3a]
add ch, byte [ebp - 0x38]
cmp dword [ebp - 0x40], 0
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x39], al
mov byte [ebp - 0x3a], ch
je 0x1003b1d3
cmp ch, 5
jae 0x1003b499
mov esi, dword [ebx]
movzx edi, ch
mov cl, byte [esi + edi]
lea edx, [esi + edi]
test cl, cl
je 0x1003b3d5
cmp cl, 0x90
je 0x1003b3d5
cmp cl, 0xcc
jne 0x1003b412
mov esi, 5
mov eax, 1
sub esi, edi
cmp esi, eax
jbe 0x1003b499
nop dword [eax]
cmp byte [edx + eax], cl
jne 0x1003b410
inc eax
cmp eax, esi
jb 0x1003b3f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
cmp ch, 2
jae 0x1003b44f
test cl, cl
je 0x1003b429
cmp cl, 0x90
je 0x1003b429
cmp cl, 0xcc
jne 0x1003b4af
mov ecx, 2
mov eax, 1
sub ecx, edi
cmp ecx, eax
jbe 0x1003b44f
nop dword [eax]
mov bl, byte [edx]
cmp byte [edx + eax], bl
mov ebx, dword [ebp - 0x58]
jne 0x1003b4af
inc eax
cmp eax, ecx
jb 0x1003b440
push 0x1c
lea eax, [ebp - 0x38]
push eax
lea eax, [esi - 5]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [ebp - 0x28], 0x1000
jne 0x1003b4af
test byte [ebp - 0x24], 0xf0
je 0x1003b4af
mov edx, dword [ebx]
mov cl, byte [edx - 5]
test cl, cl
je 0x1003b481
cmp cl, 0x90
je 0x1003b481
cmp cl, 0xcc
jne 0x1003b4af
mov eax, 1
cmp byte [edx + eax - 5], cl
jne 0x1003b4af
inc eax
cmp eax, 5
jb 0x1003b486
mov dword [ebx + 0xc], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b9a6
mov esp, ebp
pop ebp
ret