Function at 0x5b400c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x5b4014
push ecx
push ebx
xor eax, eax
push ebp
push 0x5b4bbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x669e6c]
mov dword [eax + 4], 1
mov eax, dword [0x669e6c]
mov dword [eax + 8], 0xc8
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0x10], edx
call fcn.0049d428
mov byte [ebp - 0x21], 0
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov dl, 1
mov eax, dword [0x41ab08]
call fcn.00403c64
mov dword [ebp - 8], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x48]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040aed4
lea eax, [ebp - 0x44]
mov edx, 0x5b4bd4
call fcn.00404dbc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.00420ed8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0xe], ax
call fcn.0049cc08
call fcn.0049cc4c
mov eax, dword [0x668f00]
mov byte [eax], 0x30
mov eax, dword [0x668f00]
inc eax
mov dx, word [ebp - 0xe]
mov word [eax], dx
mov eax, 3
call fcn.005867dc
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5b411f
cmp eax, 0x10000
jbe 0x5b420b
jmp 0x5b4125
jle 0x5b420b
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x5b413b
add eax, 0xffff
sar eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
and eax, 0x8000ffff
jns 0x5b4152
dec eax
or eax, 0xffff0000
inc eax
test eax, eax
jle 0x5b4159
inc dword [ebp - 0x18]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dword [ebp - 0x20], 0x10000
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x5b422e
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, dword [ebp - 0x1c]
jne 0x5b41dc
cmp dword [ebp - 0x18], 1
jle 0x5b41dc
mov eax, dword [ebp - 0x14]
and eax, 0x8000ffff
jns 0x5b41bb
dec eax
or eax, 0xffff0000
inc eax
test eax, eax
jle 0x5b41d5
mov eax, dword [ebp - 0x14]
and eax, 0x8000ffff
jns 0x5b41d0
dec eax
or eax, 0xffff0000
inc eax
mov dword [ebp - 0x20], eax
jmp 0x5b41dc
mov dword [ebp - 0x20], 0x10000
mov edx, dword [0x668f00]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00420704
mov eax, dword [ebp - 0x20]
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x5b418f
jmp 0x5b422e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [0x668f00]
mov eax, dword [ebp - 8]
call fcn.00420704
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xc8
call fcn.005965d8
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x668f00]
mov byte [eax], 0xfe
mov eax, 1
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 1
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax], 1
je 0x5b42a0
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov edx, 0x5b4bf4
call fcn.0052fa8c
mov eax, dword [ebp - 8]
call fcn.00403c94
jmp 0x5b4b89
lea edx, [ebp - 0x50]
mov eax, dword [0x669488]
mov al, byte [eax]
call fcn.0049b9a0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x5b4c24
call fcn.00404e00
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, 1
call fcn.005867fc
mov eax, dword [ebp - 8]
call fcn.00403c94
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0x64
call fcn.005965d8
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0044e464
mov edx, 0x5b4c38
call fcn.0044e36c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xc
call fcn.0049d654
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x668f00]
mov byte [eax], 0xb4
mov eax, dword [0x668f00]
mov byte [eax + 1], 1
mov eax, dword [0x668f00]
mov byte [eax + 2], 2
mov eax, dword [0x668f00]
mov byte [eax + 3], 0
mov eax, 4
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0044e464
mov edx, 0x5b4c54
call fcn.0044e36c
mov eax, dword [0x669ef8]
mov dword [eax], 0xe1000
mov eax, dword [0x66a08c]
mov byte [eax + 0x12], 8
mov eax, dword [0x66a08c]
mov byte [eax + 0x14], 0
mov eax, dword [0x669ef8]
mov eax, dword [eax]
mov edx, dword [0x66a08c]
mov dword [edx + 4], eax
call fcn.0049d3f8
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x669e6c]
mov dword [eax + 4], 1
mov eax, dword [0x669e6c]
mov dword [eax + 8], 0xc8
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0x10], edx
call fcn.0049d428
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x669488]
xor ecx, ecx
mov edx, 0xc8
call fcn.00408374
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 1
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax], 1
jne 0x5b4b89
mov eax, dword [0x6693ec]
call fcn.00404ae4
mov eax, 0x64
call fcn.005965d8
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0x93
call fcn.005867fc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
lea ecx, [ebp - 0x54]
mov eax, dword [0x669488]
mov edx, 0x93
call fcn.0049b85c
mov ecx, dword [ebp - 0x54]
mov eax, dword [0x6693ec]
mov edx, 0x5b4c78
call fcn.00404e00
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
lea ecx, [ebp - 0x60]
mov eax, dword [0x669488]
add eax, 0x17
mov edx, 0xf
call fcn.0049b85c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0049b9c4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x5b4c84
call fcn.00404e00
mov edx, dword [ebp - 0x58]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov dl, 1
mov eax, dword [0x41ab08]
call fcn.00403c64
mov dword [ebp - 0xc], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x68]
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.0049975c
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040aed4
lea eax, [ebp - 0x64]
mov edx, 0x5b4c94
call fcn.00404dbc
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xc]
call fcn.00420ed8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov word [ebp - 0xe], ax
mov eax, dword [0x668f00]
mov dx, word [ebp - 0xe]
mov word [eax], dx
mov eax, 2
call fcn.005867dc
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5b4596
cmp eax, 0xa000
jbe 0x5b466c
jmp 0x5b459c
jle 0x5b466c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, 0xa000
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, 0xa000
cdq
idiv ecx
test edx, edx
jle 0x5b45c6
inc dword [ebp - 0x18]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dword [ebp - 0x20], 0xa000
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x5b468f
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, dword [ebp - 0x1c]
jne 0x5b463d
cmp dword [ebp - 0x18], 1
jle 0x5b463d
mov eax, dword [ebp - 0x14]
mov ecx, 0xa000
cdq
idiv ecx
test edx, edx
jle 0x5b4636
mov eax, dword [ebp - 0x14]
mov ecx, 0xa000
cdq
idiv ecx
mov dword [ebp - 0x20], edx
jmp 0x5b463d
mov dword [ebp - 0x20], 0xa000
mov edx, dword [0x668f00]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00420704
mov eax, dword [ebp - 0x20]
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x5b45fc
jmp 0x5b468f
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [0x668f00]
mov eax, dword [ebp - 8]
call fcn.00420704
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0x64
call fcn.005965d8
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x668f00]
mov byte [eax], 0x8e
mov eax, 1
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 1
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax], 0xff
je 0x5b46ed
mov eax, dword [0x669488]
cmp byte [eax], 1
je 0x5b4717
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov edx, 0x5b4cb4
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0xc]
call fcn.00403c94
jmp 0x5b4b89
lea edx, [ebp - 0x70]
mov eax, dword [0x669488]
mov al, byte [eax]
call fcn.0049b9a0
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x5b4ce4
call fcn.00404e00
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [ebp - 0xc]
call fcn.00403c94
mov eax, 0x4c
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax], 0xcc
je 0x5b47b6
push 0x5b4cf8
lea edx, [ebp - 0x78]
mov eax, dword [0x669488]
mov al, byte [eax]
call fcn.0049b9a0
push dword [ebp - 0x78]
push 0x5b4d24
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x74]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
jmp 0x5b4b89
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov edx, 0x5b4d30
call fcn.0052fa8c
lea ecx, [ebp - 0x84]
mov eax, dword [0x669488]
add eax, 0xc
mov edx, 0x16
call fcn.0049b85c
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.0049b9c4
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x5b4d44
call fcn.00404e00
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov edx, dword [0x668f00]
mov eax, dword [0x669dd0]
mov ecx, 0x52
call fcn.0049b428
mov eax, 0x52
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xc
call fcn.005867fc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov edx, dword [0x668f00]
mov eax, dword [0x669914]
mov ecx, 0xe
call fcn.0049b428
mov eax, 0xe
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xe
call fcn.005867fc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov edx, dword [0x669488]
mov eax, dword [0x669914]
mov ecx, 0xe
call fcn.0049b740
test al, al
jne 0x5b490b
push 0x5b4d54
lea ecx, [ebp - 0x8c]
mov eax, dword [0x669488]
mov edx, 4
call fcn.0049b85c
push dword [ebp - 0x8c]
push 0x5b4d24
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x88]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
jmp 0x5b4b89
mov eax, dword [0x668f00]
mov byte [eax], 2
mov eax, dword [0x668f00]
mov byte [eax + 1], 0
mov eax, dword [0x668f00]
mov byte [eax + 2], 1
mov eax, dword [0x668f00]
mov byte [eax + 3], 8
mov eax, dword [0x668f00]
mov byte [eax + 4], 0
mov eax, dword [0x668f00]
mov byte [eax + 5], 0
mov eax, dword [0x668f00]
mov byte [eax + 6], 1
mov eax, dword [0x668f00]
mov byte [eax + 7], 8
mov eax, dword [0x668f00]
mov byte [eax + 8], 3
mov eax, dword [0x668f00]
mov byte [eax + 9], 0
mov eax, 0xa
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xc
call fcn.005867fc
mov eax, 0xc
call fcn.0049d654
mov edx, dword [0x668f00]
mov eax, dword [0x66937c]
mov ecx, 0xc
call fcn.0049b428
mov eax, 0xc
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0x10a
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax + 2], 0x84
je 0x5b4a26
push 0x5b4d80
lea ecx, [ebp - 0x94]
mov eax, dword [0x669488]
mov edx, 8
call fcn.0049b85c
push dword [ebp - 0x94]
push 0x5b4d24
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x90]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
jmp 0x5b4b89
mov edx, dword [0x668f00]
mov eax, dword [0x669488]
mov ecx, 0x10a
call fcn.0049b428
mov eax, dword [0x668f00]
mov byte [eax + 2], 0x85
mov eax, dword [0x668f00]
inc byte [eax + 0x107]
mov eax, 0x10a
call fcn.005867dc
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, 0xc
call fcn.005867fc
mov eax, dword [0x669488]
cmp byte [eax], 2
je 0x5b4ae7
mov eax, dword [0x669488]
cmp byte [eax + 2], 0x85
je 0x5b4ae7
mov eax, dword [0x669488]
cmp byte [eax + 6], 0xff
je 0x5b4ae7
push 0x5b4d54
lea ecx, [ebp - 0x9c]
mov eax, dword [0x669488]
mov edx, 4
call fcn.0049b85c
push dword [ebp - 0x9c]
push 0x5b4d24
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00404e74
mov edx, dword [ebp - 0x98]
mov eax, dword [0x66a00c]
mov eax, dword [eax]
call fcn.0052fa8c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
jmp 0x5b4b89
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov edx, 0x5b4db0
call fcn.0052fa8c
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x669e6c]
mov dword [eax + 4], 1
mov eax, dword [0x669e6c]
mov dword [eax + 8], 0xc8
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [0x669e6c]
xor edx, edx
mov dword [eax + 0x10], edx
call fcn.0049d428
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x66a00c]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0044e464
xor edx, edx
call fcn.0044e36c
mov eax, dword [0x669b48]
mov eax, dword [eax]
call fcn.00498e74
mov eax, dword [0x66a00c]
mov eax, dword [eax]
xor edx, edx
call fcn.0052fa8c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b4bc4
lea eax, [ebp - 0x9c]
mov edx, 0x17
call fcn.00404b08
lea eax, [ebp - 0x3c]
call fcn.00404ae4
lea eax, [ebp - 0x34]
mov edx, dword [0x5b3fe8]
call fcn.004064cc
ret