Function at 0x4c5880
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x20e8
call fcn.00505c30
push ebx
push ebp
mov ebp, dword [esp + 0x20f4]
xor eax, eax
push esi
cmp ebp, eax
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
je 0x4c5e20
cmp dword [esp + 0x2100], eax
je 0x4c5e20
cmp dword [esp + 0x2104], eax
je 0x4c5e20
mov ebx, dword [ebp + 0x18]
mov ecx, 0xf
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edi, [ebx + 0xa8]
mov dword [esp + 0x20], eax
call fcn.004cdb70
xor edx, edx
lea esi, [ebx + 0x41c]
mov dx, word [ebx + 0x42c]
lea eax, [esp + 0xfc]
push edx
push esi
push 0x1c90300
push eax
call fcn.0050739b
lea ecx, [esp + 0x10c]
push 0
push ecx
push ebp
call fcn.004cba70
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 4]
push 1
push eax
mov ax, word [ebx + 0x42c]
push edx
push eax
push esi
push ecx
call fcn.004cb120
add esp, 0x38
test eax, eax
je 0x4c59a8
cmp eax, 0xffffffec
je 0x4c5e20
cmp eax, 0xfffffff5
jne 0x4c5970
xor edx, edx
lea eax, [esp + 0xf8]
mov dx, word [ebx + 0x42c]
push edx
push esi
push 0x1c902d0
push eax
jmp 0x4c5988
xor ecx, ecx
lea edx, [esp + 0xf8]
mov cx, word [ebx + 0x42c]
push ecx
push esi
push 0x1c902bc
push edx
call fcn.0050739b
add esp, 0x10
lea eax, [esp + 0xf8]
push 3
push eax
push ebp
call fcn.004cba70
add esp, 0xc
jmp 0x4c5d41
xor ecx, ecx
lea edx, [esp + 0xf8]
mov cx, word [ebx + 0x42c]
push ecx
push esi
push 0x1c90388
push edx
call fcn.0050739b
lea eax, [esp + 0x108]
push 0
push eax
push ebp
call fcn.004cba70
mov eax, dword [esp + 0x38]
mov edx, dword [ebx + 0xa0]
push 0xa
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4]
lea ecx, [esp + 0xa0]
push ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
add edx, ecx
push edx
call fcn.00505a35
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xc4]
push eax
push 0x1c90374
push ecx
call fcn.0050739b
mov eax, dword [edi + 0x18]
add esp, 0x34
test eax, eax
lea esi, [esp + 0x9c]
je 0x4c5a37
push eax
call fcn.00505e4e
add esp, 4
xor eax, eax
sub esp, 0x1c
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], esi
mov esi, edi
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004cc690
mov esi, eax
lea edx, [esp + 0x44]
xor edi, edi
push esi
push edx
mov dword [ebx + 0xbc], edi
mov dword [ebx + 0xc0], edi
call fcn.004cdeb0
push esi
call fcn.00505e4e
lea eax, [esp + 0x50]
push eax
call fcn.004cde50
add esp, 0x2c
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004cde50
add esp, 4
push eax
push ebp
call fcn.004cba70
mov edx, dword [ebx + 0x40]
add esp, 0xc
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004cde50
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push ecx
call fcn.004cd210
add esp, 0xc
test eax, eax
jne 0x4c5ae5
lea edx, [esp + 0xf8]
push 0x1c90298
push edx
call fcn.0050739b
lea eax, [esp + 0x100]
push 3
push eax
push ebp
call fcn.004cba70
add esp, 0x14
jmp 0x4c5d41
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x44]
push edi
push edi
lea edx, [esp + ecx + 0x1100]
mov ecx, dword [ebp + 0xc]
push edi
push edx
push eax
push 0x1000
push 0x1000
push ebp
push ecx
call fcn.004cb470
add esp, 0x24
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x4c5d37
cmp dword [ebp + 8], edi
je 0x4c5d37
cmp dword [ebx + 4], 1
je 0x4c5d37
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10f8]
add ecx, eax
lea eax, [esp + 0x74]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004cc920
mov ecx, eax
add esp, 8
mov eax, dword [ecx]
cmp eax, edi
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], ecx
je 0x4c5ae5
cmp edx, 0x1001
jg 0x4c5c80
mov ecx, edx
lea esi, [esp + 0x10f8]
mov eax, ecx
lea edi, [esp + 0xf8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xfc]
mov byte [esp + edx + 0xfc], 0
push ecx
push ebp
call fcn.004cba70
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xc8]
push edx
push eax
call fcn.004cc9c0
mov ecx, 0xf
mov esi, eax
mov eax, dword [ebx + 0x14]
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
add esp, 0x14
cmp ecx, eax
je 0x4c5cae
mov edx, dword [ebp + 0x84]
push edx
call fcn.004cd250
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x4c5c13
add ebx, 0x448
push ebx
call fcn.004cc5f0
add esp, 4
test eax, eax
jne 0x4c5c13
push ebx
push esi
push ebx
call fcn.004cc610
add esp, 0xc
mov eax, dword [esp + 0x3c]
add eax, 0xffffff38
cmp eax, 0xcc
ja case.0x4c5c2f.202
xor ecx, ecx
mov cl, byte [eax + 0x4c5e3c]
jmp dword [ecx*4 + 0x4c5e30]
cmp dword [esp + 0x24], edi
je 0x4c5c72
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2100]
sub eax, edx
mov ecx, eax
lea esi, [esp + edx + 0x10f8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2104]
mov dword [ecx], eax
jmp 0x4c5d49
mov edx, dword [esp + 0x2104]
mov dword [edx], edi
jmp 0x4c5d49
lea eax, [esp + 0xf8]
push 0x1c90270
push eax
call fcn.0050739b
lea ecx, [esp + 0x100]
push 3
push ecx
push ebp
call fcn.004cba70
add esp, 0x14
mov dword [esp + 0x10], edi
jmp 0x4c5d49
lea edx, [esp + 0xf8]
push 0x1c90220
push edx
call fcn.0050739b
lea eax, [esp + 0x100]
push 3
push eax
push ebp
call fcn.004cba70
add esp, 0x14
mov dword [esp + 0x10], 0
jmp 0x4c5d49
lea ecx, [esp + 0xf8]
push 0x1c90220
push ecx
call fcn.0050739b
lea edx, [esp + 0x100]
push 3
push edx
push ebp
call fcn.004cba70
add esp, 0x14
mov dword [esp + 0x10], edi
jmp 0x4c5d49
mov eax, dword [ebp + 0x50]
lea ecx, [esp + 0xf8]
push eax
push 0x1c90200
push ecx
call fcn.0050739b
lea edx, [esp + 0x104]
push 3
push edx
push ebp
call fcn.004cba70
add esp, 0x18
mov dword [esp + 0x10], edi
jmp 0x4c5d49
push eax
push ebp
call fcn.004cd960
add esp, 8
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x28]
push eax
call fcn.004cdda0
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x4c5d67
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4c5d78
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c5d89
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c5d9a
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4c5dab
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4c5dbc
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4c5dcd
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4c5dde
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4c5def
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4c5e00
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4c5e11
push eax
call fcn.00505e4e
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20e8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20e8
ret