Function at 0x4a842140
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x24
mov eax, dword [0x4a89c5b8]
xor eax, esp
mov dword [esp + 0x20], eax
cmp byte [0x4a89e7dc], 0
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
jg 0x4a842193
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0
call fcn.4a83f3d0
add esp, 4
test al, al
jg 0x4a842193
xor eax, eax
jmp 0x4a84222b
cmp ebp, 0xffff
ja 0x4a8421d2
mov eax, 0x3ff
lea edx, [ebp - 0xd800]
cmp eax, edx
sbb eax, eax
and eax, 0xfffffec0
mov ecx, ebp
add eax, 0x140
sar ecx, 5
add ecx, eax
mov eax, dword [0x4a89e788]
movzx edx, word [eax + ecx*2]
mov ecx, ebp
and ecx, 0x1f
lea edx, [ecx + edx*4]
movzx eax, word [eax + edx*2]
jmp 0x4a842222
cmp ebp, 0x10ffff
ja 0x4a84221b
mov ecx, dword [0x4a89e788]
mov eax, ebp
sar eax, 0xa
sub eax, 0x2840
movzx eax, ax
movzx eax, ax
mov edx, eax
shr edx, 5
movzx edx, word [ecx + edx*2]
and eax, 0x1f
lea eax, [eax + edx*4]
movzx eax, word [ecx + eax*2]
push eax
call dword [0x4a89e790]
add esp, 4
test eax, eax
jle 0x4a84221b
mov ecx, ebp
sar ecx, 5
and ecx, 0x1f
jmp 0x4a8421b9
movzx eax, word [0x4a89e79c]
mov ecx, dword [0x4a89e7c4]
mov eax, dword [ecx + eax*4]
test al, 0x20
jne 0x4a842252
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
test dl, 0xa
je 0x4a84245d
sar eax, 0x14
add eax, ebp
mov dword [esp + 0x10], eax
jmp 0x4a84245d
mov ecx, dword [0x4a89e7c8]
shr eax, 0x14
add eax, eax
add eax, eax
add ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
test al, al
jns 0x4a842445
and eax, 0x7f
movzx edx, byte [eax + 0x4a87cd78]
add ecx, 4
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jns 0x4a842486
push edi
call fcn.4a841cd0
add esp, 4
test esi, esi
mov edi, eax
je 0x4a8422a5
mov eax, dword [esi + 0x18]
push 1
push esi
call eax
add esp, 8
mov ebx, eax
jmp 0x4a8422a7
xor ebx, ebx
cmp edi, 2
jne 0x4a84238d
cmp ebp, 0x49
je 0x4a8422c2
cmp ebp, 0x4a
je 0x4a8422c2
cmp ebp, 0x12e
jne 0x4a8422cf
push ebx
call fcn.4a8420a0
add esp, 4
test al, al
jne 0x4a8422eb
cmp ebp, 0xcc
je 0x4a8422eb
cmp ebp, 0xcd
je 0x4a8422eb
cmp ebp, 0x128
jne 0x4a8423f0
lea eax, [ebp - 0x49]
cmp eax, 0xe5
lea ecx, [esp + 0x20]
mov word [esp + 0x22], 0x307
ja case.0x4a84230b.75
movzx edx, byte [eax + 0x4a842530]
jmp dword [edx*4 + 0x4a842514]
mov word [esp + 0x20], 0x69
mov eax, 2
jmp 0x4a84249f
mov word [esp + 0x20], 0x6a
mov eax, 2
jmp 0x4a84249f
mov word [esp + 0x20], 0x12f
mov eax, 2
jmp 0x4a84249f
mov word [esp + 0x20], 0x69
mov word [esp + 0x24], 0x300
mov eax, 3
jmp 0x4a84249f
mov word [esp + 0x20], 0x69
mov word [esp + 0x24], 0x301
mov eax, 3
jmp 0x4a84249f
mov word [esp + 0x20], 0x69
mov word [esp + 0x24], 0x303
mov eax, 3
jmp 0x4a84249f
cmp edi, 1
jne 0x4a8423f0
cmp ebp, 0x130
jne 0x4a8423a7
mov dword [esp + 0x10], 0x69
jmp 0x4a84245d
cmp ebp, 0x307
jne 0x4a8423d4
add ebx, 0xffffffff
push ebx
call fcn.4a842050
add esp, 4
test al, al
je 0x4a842438
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.4a859707
add esp, 0x24
ret
cmp ebp, 0x49
jne 0x4a8423f0
push ebx
call fcn.4a8420f0
add esp, 4
test al, al
jne 0x4a842438
mov dword [esp + 0x10], 0x131
jmp 0x4a84245d
cmp ebp, 0x130
jne 0x4a842407
mov ecx, 0x4a87cd74
mov eax, 2
jmp 0x4a84249f
cmp ebp, 0x3a3
jne 0x4a842438
push ebx
mov edi, esi
call fcn.4a841d70
add esp, 4
test al, al
jne 0x4a842438
add ebx, 0xffffffff
push ebx
call fcn.4a841eb0
add esp, 4
test al, al
je 0x4a842438
mov dword [esp + 0x10], 0x3c2
jmp 0x4a84245d
mov eax, dword [0x4a89e7c8]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [ecx]
test al, 2
je 0x4a84245d
add ecx, 4
and eax, 1
movzx eax, byte [eax + 0x4a87cd78]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov edx, 0xffff
cmp edx, ecx
sbb eax, eax
neg eax
add eax, 1
cmp eax, dword [esp + 0x44]
jg 0x4a8424f8
cmp ecx, edx
mov edx, dword [esp + 0x14]
ja 0x4a8424d8
mov word [edx], cx
jmp 0x4a8424f8
mov edx, dword [0x4a89e7d0]
and ecx, 0xffff
movzx eax, byte [edx + ecx*2]
lea ecx, [edx + ecx*2]
and eax, 0x1f
add ecx, 2
mov esi, dword [esp + 0x44]
cmp eax, esi
jge 0x4a8424a9
mov esi, eax
xor edx, edx
test esi, esi
jle 0x4a8424fe
nop
mov di, word [ecx]
mov ebx, dword [esp + 0x14]
mov word [ebx + edx*2], di
add edx, 1
add ecx, 2
cmp edx, esi
jl 0x4a8424b0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.4a859707
add esp, 0x24
ret
mov esi, ecx
sar esi, 0xa
sub esi, 0x2840
mov word [edx], si
mov esi, ecx
and esi, 0x3ff
or esi, 0xdc00
mov word [edx + 2], si
cmp ecx, ebp
jne 0x4a8424fe
neg eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.4a859707
add esp, 0x24
ret