Function at 0x1005c980
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011e138
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], 0xf4240
mov dword [esp + 0x14], edi
call fcn.1005db90
xor eax, eax
cmp edi, dword [ebp + 0xc]
je 0x1005cdbc
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], esi
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.1009bec0
cmp edi, dword [ebp + 0xc]
jae 0x1005cda9
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005cdba
mov ecx, edi
sub ecx, eax
sar ecx, 2
je 0x1005cda9
mov ecx, eax
cmp ecx, edi
mov esi, edi
jbe 0x1005ca2a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov ebx, eax
lea eax, [esi - 4]
cmp eax, edi
mov dword [esp + 0x20], esi
ja 0x1005ca3f
cmp eax, ecx
jae 0x1005ca4d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
add esi, 0xfffffffc
cmp esi, dword [ebx + 8]
jb 0x1005ca63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
je 0x1005ca7f
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, 0x3e8
jg 0x1005cdcf
mov edx, dword [ebp + 8]
mov bl, byte [edx]
add edx, 1
cmp edx, dword [ebp + 0xc]
mov byte [esp + 0x13], bl
mov dword [ebp + 8], edx
jb 0x1005ca9c
cmp bl, 0x65
jne 0x1005ce8b
mov eax, dword [esi + 0x10]
shr eax, 0x1d
sub eax, 1
je 0x1005cb07
sub eax, 1
jne 0x1005cbf6
cmp bl, 0x65
jne 0x1005cae4
sub edx, dword [esi + 4]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005cd99
mov edi, dword [esp + 0x44]
mov edx, edi
sub edx, eax
sar edx, 2
je 0x1005cd9d
sub edi, 4
mov dword [esp + 0x44], edi
jmp 0x1005cd9d
call fcn.1005d930
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1005cf1a
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.1009bec0
jmp 0x1005cbea
cmp bl, 0x65
jne 0x1005cb3b
sub edx, dword [esi + 4]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005cd99
mov edi, dword [esp + 0x44]
mov ecx, edi
sub ecx, eax
sar ecx, 2
je 0x1005cd9d
sub edi, 4
mov dword [esp + 0x44], edi
jmp 0x1005cd9d
mov dl, bl
sub dl, 0x30
cmp dl, 9
ja 0x1005cfa1
movsx eax, bl
sub eax, 0x30
cdq
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x28]
mov bl, 0x3a
mov dword [esp + 0x2c], edx
call fcn.1005c930
add esp, 4
test eax, eax
mov dword [ebp + 8], eax
je 0x1005d442
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp + 0xc]
mov edx, eax
lea eax, [ecx + edx + 3]
cmp eax, ebx
ja 0x1005d442
mov ecx, edx
cmp byte [ecx], 0x3a
jne 0x1005d442
mov esi, edx
add esi, 1
cmp esi, ebx
mov dword [ebp + 8], esi
je 0x1005d030
mov edi, esi
mov esi, dword [esp + 0x1c]
push edi
call fcn.1005d550
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1005d0ce
add edi, dword [esp + 0x24]
cmp edi, ebx
mov dword [ebp + 8], edi
jae 0x1005d168
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.1009bec0
mov eax, edi
mov dl, byte [eax]
add eax, 1
mov byte [esp + 0x13], dl
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x40]
mov bl, byte [esp + 0x13]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
sub eax, 1
test eax, eax
mov dword [esp + 0x18], eax
jle 0x1005d202
cmp ecx, edi
mov esi, edi
jbe 0x1005cc1d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], eax
lea eax, [esi - 4]
cmp eax, edi
mov dword [esp + 0x38], esi
ja 0x1005cc34
cmp eax, ecx
jae 0x1005cc3a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
add esi, 0xfffffffc
cmp esi, dword [eax + 8]
jb 0x1005cc4c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp bl, 0x64
mov edi, dword [esi]
je 0x1005cd82
cmp bl, 0x69
je 0x1005cd2a
cmp bl, 0x6c
je 0x1005cd18
mov cl, bl
sub cl, 0x30
cmp cl, 9
ja 0x1005d291
movsx eax, bl
sub eax, 0x30
cdq
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push edx
lea esi, [esp + 0x30]
mov bl, 0x3a
call fcn.1005c930
add esp, 4
test eax, eax
mov dword [ebp + 8], eax
mov ebx, eax
je 0x1005d318
mov esi, dword [esp + 0x2c]
lea eax, [esi + ebx + 1]
cmp eax, dword [ebp + 0xc]
ja 0x1005d318
cmp byte [ebx], 0x3a
jne 0x1005d318
mov ecx, dword [edi + 0x10]
and ecx, 0x1fffffff
or ecx, 0x60000000
mov dword [edi + 0x10], ecx
add ebx, 1
mov ecx, esi
mov dword [edi], ebx
mov dword [edi + 0xc], esi
call fcn.1005d770
mov edx, ebx
sub edx, eax
lea eax, [edx - 1]
mov ecx, esi
sub ecx, eax
add ecx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005cd0e
mov edx, dword [esp + 0x44]
sub edx, eax
sar edx, 2
je 0x1005cd0e
sub dword [esp + 0x44], 4
add ebx, esi
mov dword [ebp + 8], ebx
jmp 0x1005cd99
mov eax, dword [ebp + 8]
add eax, 0xffffffff
mov dword [edi + 0x10], 0x40000000
mov dword [edi + 4], eax
jmp 0x1005cd92
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
mov esi, ecx
jae 0x1005cd42
cmp byte [esi], 0x65
je 0x1005cd42
add esi, 1
cmp esi, edx
jb 0x1005cd36
mov ebx, dword [edi + 0x10]
mov eax, esi
sub eax, ecx
and ebx, 0x1fffffff
or ebx, 0x80000000
mov dword [edi], ecx
mov dword [edi + 0xc], eax
add ecx, 0xffffffff
add eax, 2
cmp esi, edx
mov dword [edi + 0x10], ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
je 0x1005d3ad
add esi, 1
lea ecx, [esp + 0x3c]
mov dword [ebp + 8], esi
call fcn.1005dc50
jmp 0x1005cd99
mov ecx, dword [ebp + 8]
add ecx, 0xffffffff
mov dword [edi + 0x10], 0x20000000
mov dword [edi + 4], ecx
mov dword [edi + 0xc], 0
mov edi, dword [esp + 0x44]
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 8], edx
jb 0x1005c9fb
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005cdba
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
test byte [0x10154fc8], bl
jne 0x1005ce01
or dword [0x10154fc8], ebx
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, dword [ebp + 0x10]
mov eax, 0xc2
mov edx, 0x10154fcc
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
je 0x1005ce58
sub edi, ecx
sar edi, 2
je 0x1005ce58
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, ebx
je 0x1005ce38
cmp eax, 2
jne 0x1005ce45
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005ce45
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x1005ce13
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1005ce68
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x14]
mov dword [edx], eax
test ecx, ecx
je 0x1005ce75
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [0x10154fc8], 1
jne 0x1005ceba
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, dword [ebp + 0x10]
mov eax, 0xc0
mov edx, 0x10154fcc
mov dword [esi], eax
mov dword [esi + 4], edx
lea esp, [esp]
test ecx, ecx
je 0x1005ce58
sub edi, ecx
sar edi, 2
je 0x1005ce58
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005cefa
cmp eax, 2
jne 0x1005cf07
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005cf07
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x1005ced0
test byte [0x10154fc8], 1
jne 0x1005cf41
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, 0x2d
mov ecx, 0x10154fcc
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d4c7
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
je 0x1005d4c7
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005cf89
cmp eax, 2
jne 0x1005cf96
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005cf96
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005cf53
test byte [0x10154fc8], 1
jne 0x1005cfd0
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, dword [ebp + 0x10]
mov eax, 0xbe
mov edx, 0x10154fcc
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
je 0x1005ce58
sub edi, ecx
sar edi, 2
je 0x1005ce58
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d010
cmp eax, 2
jne 0x1005d01d
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d01d
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x1005cfe2
test byte [0x10154fc8], 1
jne 0x1005d05b
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
add esp, 4
mov ebx, dword [ebp + 0x10]
mov ecx, 0xc0
mov edx, 0x10154fcc
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d0b3
sub edi, eax
sar edi, 2
je 0x1005d0b3
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d097
cmp eax, 2
jne 0x1005d0a4
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d0a4
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
jmp 0x1005d06d
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005d0c0
sub esi, dword [esp + 0x14]
mov dword [ecx], esi
test eax, eax
je 0x1005ce75
push eax
jmp 0x1005ce6d
test byte [0x10154fc8], 1
jne 0x1005d0f5
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, 0x2d
mov ecx, 0x10154fcc
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d14d
mov edx, dword [esp + 0x44]
sub edx, eax
sar edx, 2
je 0x1005d14d
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d135
cmp eax, 2
jne 0x1005d142
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d142
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005d107
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005d15a
sub edi, dword [esp + 0x14]
mov dword [ecx], edi
test eax, eax
je 0x1005ce75
push eax
jmp 0x1005ce6d
test byte [0x10154fc8], 1
jne 0x1005d18f
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, 0xc0
mov ecx, 0x10154fcc
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d1e7
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
je 0x1005d1e7
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d1cf
cmp eax, 2
jne 0x1005d1dc
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d1dc
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005d1a1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005d1f4
sub edi, dword [esp + 0x14]
mov dword [ecx], edi
test eax, eax
je 0x1005ce75
push eax
jmp 0x1005ce6d
test byte [0x10154fc8], 1
jne 0x1005d231
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, dword [ebp + 0x10]
mov eax, 0xc3
mov edx, 0x10154fcc
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
je 0x1005ce58
sub edi, ecx
sar edi, 2
je 0x1005ce58
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d271
cmp eax, 2
jne 0x1005d27e
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d27e
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x1005d243
test byte [0x10154fc8], 1
jne 0x1005d2b8
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edi, dword [ebp + 0x10]
mov edx, 0xc1
mov esi, 0x10154fcc
mov dword [edi], edx
mov dword [edi + 4], esi
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov eax, dword [esp + 0x44]
je 0x1005ce58
sub eax, ecx
sar eax, 2
je 0x1005ce58
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d300
cmp eax, 2
jne 0x1005d30d
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d30d
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005d2ca
test byte [0x10154fc8], 1
jne 0x1005d33f
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edi, dword [ebp + 0x10]
mov edx, 0xbf
mov esi, 0x10154fcc
mov dword [edi], edx
mov dword [edi + 4], esi
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov eax, dword [esp + 0x44]
je 0x1005d397
sub eax, ecx
sar eax, 2
je 0x1005d397
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d37f
cmp eax, 2
jne 0x1005d38c
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d38c
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005d351
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1005ce68
sub ebx, dword [esp + 0x14]
mov dword [eax], ebx
jmp 0x1005ce68
test byte [0x10154fc8], 1
jne 0x1005d3d4
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, 0xc0
mov ecx, 0x10154fcc
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d42c
mov edx, dword [esp + 0x44]
sub edx, eax
sar edx, 2
je 0x1005d42c
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, 1
je 0x1005d414
cmp eax, 2
jne 0x1005d421
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d421
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
jmp 0x1005d3e6
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005d4d7
sub esi, dword [esp + 0x14]
mov dword [ecx], esi
jmp 0x1005d4d7
mov ebx, 1
test byte [0x10154fc8], bl
jne 0x1005d470
or dword [0x10154fc8], ebx
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
mov edi, dword [esp + 0x48]
add esp, 4
mov esi, dword [ebp + 0x10]
mov ecx, 0xbf
mov edx, 0x10154fcc
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005d4c7
sub edi, eax
sar edi, 2
je 0x1005d4c7
lea eax, [esp + 0x3c]
call fcn.1005dc00
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
shr eax, 0x1d
cmp eax, ebx
je 0x1005d4ab
cmp eax, 2
jne 0x1005d4b8
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x1005d4b8
add eax, 0xffffffff
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
call fcn.1005dc50
mov edi, dword [esp + 0x44]
jmp 0x1005d482
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1005d4d7
mov ecx, dword [ebp + 8]
sub ecx, dword [esp + 0x14]
mov dword [edx], ecx
test eax, eax
je 0x1005ce75
push eax
jmp 0x1005ce6d