Function at 0x5b5fc4
Capabilities:
Load assembly via iassembly

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b680e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005b0174
test eax, eax
jne 0x5b6031
mov eax, dword [ebx + 0x7bc]
dec eax
test eax, eax
jl 0x5b67f8
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x7c0]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
mov edx, esi
mov eax, ebx
call fcn.005b5fc4
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x5b600f
jmp 0x5b67f8
cmp dword [ebp - 4], 0
jl 0x5b67f8
mov ebx, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, ebx
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x10]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x20]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x21]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x24]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 4]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 8]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 0x10]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 0x14]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 0x18]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x148]
lea edx, [eax + 0x1c]
mov ecx, 3
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0xd4]
call fcn.00409e50
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0xd4]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xd8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x4c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x50]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x54]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x58]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x5c]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xdc]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x14]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x5d]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x80]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x1c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x1c]
test eax, eax
jle 0x5b622f
mov edx, dword [ebx + 0x18]
mov ecx, eax
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 0xb
jne 0x5b6271
lea edx, [ebx + 0x34]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x38]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x39]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x3a]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov al, byte [ebx + 0x10]
cmp al, 1
je 0x5b627c
cmp al, 0xb
jne 0x5b62b8
lea edx, [ebx + 0x28]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x29]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x2c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x30]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 4
jne 0x5b62dc
lea edx, [ebx + 0x60]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x68]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 5
jne 0x5b633a
lea edx, [ebx + 0x70]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x74]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edi, dword [ebx + 0x78]
test edi, edi
jne 0x5b630e
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5b6318
mov eax, edi
call fcn.00409e50
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5b633a
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x5b634d
cmp al, 0xb
je 0x5b634d
cmp al, 0xc
jne 0x5b6415
lea edx, [ebx + 0x81]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x82]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x78]
call fcn.00409e50
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp dword [ebx + 0x7c], 0
je 0x5b63c2
mov byte [ebp - 0x11], 1
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0x7c]
mov ecx, 0x3c
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
jmp 0x5b63d5
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x88]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x88]
test eax, eax
jle 0x5b6415
mov ecx, eax
shl ecx, 4
mov edx, dword [ebx + 0x84]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x8c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 0xa
jne 0x5b664e
mov edi, dword [ebx + 0x78]
test edi, edi
jne 0x5b642d
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5b6437
mov eax, edi
call fcn.00409e50
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5b6459
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp dword [ebx + 0x7c], 0
je 0x5b6483
mov byte [ebp - 0x11], 1
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0x7c]
mov ecx, 0x3c
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
jmp 0x5b6496
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp dword [ebx + 0x94], 0
je 0x5b64c7
mov byte [ebp - 0x11], 1
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov edx, dword [ebx + 0x94]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
jmp 0x5b64da
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x5b64ec
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jmp 0x5b64f1
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x5b6537
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x98]
call fcn.004120b8
mov edx, eax
mov ecx, 0x118
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x5b6513
lea edx, [ebx + 0x83]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x82]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x9c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xa0]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xa4]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x81]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xa8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xac]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 0xa
jne 0x5b65f4
cmp byte [ebx + 0xac], 0
je 0x5b65f4
lea edx, [ebx + 0x70]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x74]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xb0]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xb8]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xc0]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xc8]
mov ecx, 8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xd0]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0x90]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 7
jne 0x5b66c7
lea edx, [ebx + 0xdd]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xde]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp dword [ebx + 0x7c], 0
je 0x5b66b4
mov byte [ebp - 0x11], 1
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0x7c]
mov ecx, 0x3c
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
jmp 0x5b66c7
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 8
jne 0x5b6753
lea edx, [ebx + 0xe4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov ecx, dword [ebx + 0xe4]
shl ecx, 3
mov edx, dword [ebx + 0xe0]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xec]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xf0]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xf4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xf8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebx + 0xfc]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 9
jne 0x5b67a8
lea edx, [ebx + 0x10c]
mov ecx, 0x18
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp dword [ebx + 0x7c], 0
je 0x5b6795
mov byte [ebp - 0x11], 1
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edx, dword [ebx + 0x7c]
mov ecx, 0x3c
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
jmp 0x5b67a8
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebx + 0x10], 0xc
jne 0x5b67f8
cmp dword [ebx + 0x14c], 0
setne byte [ebp - 0x11]
lea edx, [ebp - 0x11]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebp - 0x11], 0
je 0x5b67f8
mov eax, dword [ebx + 0x14c]
call fcn.004030b4
lea edx, [ebp - 0x1c]
call fcn.005bd534
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0067e458
mov edx, esi
mov eax, dword [ebx + 0x14c]
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b6815
lea eax, [ebp - 0x1c]
call fcn.00403ef8
ret