Function at 0x4c0320
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c0609
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0042023c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0x2000
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x596228]
call fcn.005ae810
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x41b014]
call fcn.00403cf4
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [0x41b014]
call fcn.00403cf4
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4c05e9
push dword fs:[eax]
mov dword fs:[eax], esp
jmp case.default.0x4c03d9
cmp byte [ebp - 0x11], 0xff
jne case.default.0x4c03d9
lea edx, [ebp - 0x12]
mov ecx, 1
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
xor eax, eax
mov al, byte [ebp - 0x12]
cmp eax, 0xcc
jg 0x4c0410
je case.0x4c03d9.196
add eax, 0xffffff40
cmp eax, 0xb
ja case.default.0x4c03d9
jmp dword [eax*4 + 0x4c03e0]
cmp eax, 0xda
jge 0x4c0433
add eax, 0xffffff33
sub eax, 3
jb case.0x4c03d9.192
sub eax, 9
je case.0x4c03d9.192
jmp case.default.0x4c03d9
add eax, 0xffffff26
sub eax, 8
jb case.0x4c03d9.196
je 0x4c0452
dec eax
sub eax, 0x1c
jb case.0x4c03d9.196
jmp case.default.0x4c03d9
lea edx, [ebp - 2]
mov ecx, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
mov ax, word [ebp - 2]
call fcn.00596f74
mov word [ebp - 2], ax
movzx eax, word [ebp - 2]
call fcn.00402a68
mov esi, eax
movzx ecx, word [ebp - 2]
sub ecx, 2
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 8]
lea eax, [ebp - 0x3c]
mov edx, esi
call fcn.00404d30
mov eax, dword [ebp - 0x3c]
mov edx, 0x4c0620
call fcn.00404f3c
je 0x4c04ad
mov eax, esi
call fcn.00402a88
jmp case.default.0x4c03d9
mov al, byte [esi + 0xc]
dec eax
mov byte [ebp - 0x29], al
mov al, byte [esi + 0xd]
mov byte [ebp - 0x2a], al
movzx edi, byte [ebp - 0x29]
mov eax, dword [ebp - 0x24]
cmp edi, dword [eax + 8]
jl 0x4c04e2
xor edx, edx
mov dl, byte [ebp - 0x29]
inc edx
mov eax, dword [ebp - 0x24]
call fcn.0041da9c
xor edx, edx
mov dl, byte [ebp - 0x29]
inc edx
mov eax, dword [ebp - 0x28]
call fcn.0041da9c
mov edx, edi
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.0041d9ec
movzx ecx, word [ebp - 2]
sub ecx, 0x10
mov edx, edi
mov eax, dword [ebp - 0x28]
call fcn.0041d9ec
movzx eax, word [ebp - 2]
sub eax, 0x10
add dword [ebp - 0x38], eax
inc ebx
cmp bl, byte [ebp - 0x2a]
je case.0x4c03d9.192
jmp case.default.0x4c03d9
push ebp
call fcn.004c02bc
pop ecx
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
test eax, eax
jg 0x4c039f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c05f3
cmp dword [ebp - 0x38], 0
jle 0x4c05c2
mov eax, dword [ebp - 0x38]
call fcn.00402a68
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4c05a7
inc esi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0041d8a0
mov edi, eax
add edi, 0xe
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0041d8a0
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x34]
call fcn.004083c8
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0041d8a0
add dword [ebp - 0x34], eax
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.0041d8a0
call fcn.00402a88
inc ebx
dec esi
jne 0x4c0562
mov eax, dword [ebp - 0x10]
call fcn.00588eec
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
call fcn.005ad944
mov eax, dword [ebp - 0x30]
call fcn.00402a88
mov eax, dword [ebp - 0x24]
call fcn.00403d24
mov eax, dword [ebp - 0x28]
call fcn.00403d24
mov eax, dword [ebp - 8]
call fcn.00403d24
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0042025c
ret