Function at 0x561a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5361
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x6dd8d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x5c], esi
cmp esi, 0xffffffff
jne 0x561a8f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x2c]
push 0
push ecx
lea eax, [edi + 4]
push 4
push eax
push esi
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x561a79
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [edi + 8]
push 4
push eax
push esi
mov dword [ebp - 0x58], eax
call ebx
test eax, eax
je 0x561a79
mov ebx, dword [edi + 8]
xor ecx, ecx
imul ebx, dword [edi + 4]
mov edx, 0x2c
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059966e
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x561b1d
push fcn.0055eae0
push 0x55ea90
push ebx
mov dword [eax], ebx
add eax, 4
push 0x2c
push eax
mov dword [ebp - 0x64], eax
call fcn.00599f14
mov eax, dword [ebp - 0x64]
jmp 0x561b1f
xor eax, eax
mov dword [edi + 0xc], eax
xor ebx, ebx
lea eax, [edi + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [eax], ebx
jbe 0x561ba1
mov ecx, dword [ebp - 0x20]
xor edi, edi
cmp dword [ecx], edi
jbe 0x561b99
jmp 0x561b40
push 0
lea eax, [ebp - 0x2c]
push eax
push 2
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x561a79
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
imul eax, ebx
add eax, edi
imul esi, eax, 0x2c
mov eax, dword [ebp - 0x60]
add esi, dword [eax + 0xc]
je 0x561b88
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x18]
mov ax, word [ebp + 8]
mov word [esi + 0x1c], ax
mov eax, dword [ebp - 0x20]
inc edi
mov esi, dword [ebp - 0x5c]
cmp edi, dword [eax]
jb 0x561b40
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x20]
inc ebx
cmp ebx, dword [eax]
jb 0x561b35
mov edi, dword [ebp - 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov esi, dword [edi + 8]
mov dword [edi + 0x2c], eax
mov eax, 0xaaaaaaab
mul ecx
mov dword [edi + 0x10], ecx
mov eax, 0xaaaaaaab
mov ecx, edx
mov dword [edi + 0x14], esi
mul esi
shr ecx, 1
mov esi, edx
mov dword [edi + 0x18], ecx
shr esi, 1
mov edx, 0x2c
mov dword [edi + 0x1c], esi
imul esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059966e
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x561c28
push fcn.0055eae0
push 0x55ea90
push esi
lea ebx, [eax + 4]
mov dword [eax], esi
push 0x2c
push ebx
call fcn.00599f14
jmp 0x561c2a
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x30], ebx
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x1c], eax
jbe 0x561f0b
xor edx, edx
mov dword [ebp - 0x18], edx
jmp 0x561c50
cmp dword [edi + 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x561ef8
lea eax, [edx + 2]
mov esi, 2
mov dword [ebp - 0x20], eax
lea esp, [esp]
mov eax, dword [edi + 4]
lea ebx, [esi - 2]
cmp ebx, eax
jae 0x561c94
cmp edx, dword [edi + 8]
jae 0x561c94
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
imul edx, ecx, 0x2c
add edx, dword [edi + 0xc]
mov dword [ebp - 0x60], edx
jne 0x561c9b
mov dword [ebp - 0x60], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x561cc1
mov edx, dword [ebp - 0x18]
cmp edx, dword [edi + 8]
jae 0x561cc1
mov ecx, eax
imul ecx, edx
add ecx, esi
imul edx, ecx, 0x2c
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffd4
add ecx, edx
mov dword [ebp - 0x28], ecx
jne 0x561cc8
mov dword [ebp - 0x28], 0
cmp esi, eax
jae 0x561ce6
mov edx, dword [ebp - 0x18]
cmp edx, dword [edi + 8]
jae 0x561ce6
mov ecx, eax
imul ecx, edx
add ecx, esi
imul ecx, ecx, 0x2c
add ecx, dword [edi + 0xc]
mov dword [ebp - 0x24], ecx
jne 0x561ced
mov dword [ebp - 0x24], 0
cmp ebx, eax
jae 0x561d0f
mov edx, dword [ebp - 0x20]
dec edx
cmp edx, dword [edi + 8]
jae 0x561d0f
mov ecx, eax
imul ecx, edx
add ecx, 0xfffffffe
add ecx, esi
imul edx, ecx, 0x2c
add edx, dword [edi + 0xc]
mov dword [ebp - 0x10], edx
jne 0x561d16
mov dword [ebp - 0x10], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x561d3d
mov edx, dword [ebp - 0x20]
dec edx
cmp edx, dword [edi + 8]
jae 0x561d3d
mov ecx, eax
imul ecx, edx
add ecx, esi
imul edx, ecx, 0x2c
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffd4
add ecx, edx
mov dword [ebp - 0x30], ecx
jne 0x561d44
mov dword [ebp - 0x30], 0
cmp esi, eax
jae 0x561d63
mov edx, dword [ebp - 0x20]
dec edx
cmp edx, dword [edi + 8]
jae 0x561d63
mov ecx, eax
imul ecx, edx
add ecx, esi
imul ecx, ecx, 0x2c
add ecx, dword [edi + 0xc]
mov dword [ebp - 0x34], ecx
jne 0x561d6a
mov dword [ebp - 0x34], 0
cmp ebx, eax
lea edx, [edi + 8]
mov ebx, dword [ebp - 0x20]
jae 0x561d8d
cmp ebx, dword [edx]
jae 0x561d8d
mov ecx, eax
imul ecx, ebx
add ecx, 0xfffffffe
add ecx, esi
imul ecx, ecx, 0x2c
add ecx, dword [edi + 0xc]
mov dword [ebp - 0x38], ecx
jne 0x561d94
mov dword [ebp - 0x38], 0
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x561db6
cmp ebx, dword [edx]
jae 0x561db6
mov ecx, eax
imul ecx, ebx
add ecx, esi
imul edx, ecx, 0x2c
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffd4
add ecx, edx
mov dword [ebp - 0x5c], ecx
jne 0x561dbb
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
cmp esi, eax
jae 0x561dd1
cmp ebx, dword [edi + 8]
jae 0x561dd1
imul eax, ebx
add eax, esi
imul ebx, eax, 0x2c
add ebx, dword [edi + 0xc]
jne 0x561dd3
xor ebx, ebx
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x561edf
cmp dword [ebp - 0x28], 0
je 0x561edf
cmp dword [ebp - 0x24], 0
je 0x561edf
cmp dword [ebp - 0x10], 0
je 0x561edf
cmp dword [ebp - 0x30], 0
je 0x561edf
cmp dword [ebp - 0x34], 0
je 0x561edf
cmp dword [ebp - 0x38], 0
je 0x561edf
test ecx, ecx
je 0x561edf
test ebx, ebx
je 0x561edf
mov ecx, eax
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x28]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x24]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x10]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x30]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x34]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x38]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, dword [ebp - 0x5c]
call fcn.0055cc60
test eax, eax
jne 0x561e98
mov ecx, ebx
call fcn.0055cc60
test eax, eax
jne 0x561e98
xor edx, edx
jmp 0x561e9d
mov edx, 1
mov eax, dword [edi + 0x18]
imul eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
push ebx
add eax, ebx
imul eax, eax, 0x2c
add eax, dword [edi + 0x30]
mov word [eax + 0x1c], dx
mov eax, dword [edi + 0x18]
imul eax, dword [ebp - 0x1c]
add eax, ebx
imul ecx, eax, 0x2c
add ecx, dword [edi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x18]
imul eax, edx
push edx
add eax, ebx
imul ecx, eax, 0x2c
add ecx, dword [edi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
add esi, 3
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x18]
jb 0x561c70
mov eax, dword [ebp - 0x1c]
inc eax
add edx, 3
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp eax, dword [edi + 0x1c]
jb 0x561c50
mov esi, dword [edi + 8]
xor ecx, ecx
mov eax, dword [edi + 4]
mov edx, 0x2c
shr eax, 2
shr esi, 2
mov dword [edi + 0x24], esi
imul esi, eax
mov dword [edi + 0x20], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059966e
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x561f6f
push fcn.0055eae0
push 0x55ea90
push esi
lea ebx, [eax + 4]
mov dword [eax], esi
push 0x2c
push ebx
call fcn.00599f14
jmp 0x561f71
xor ebx, ebx
mov dword [edi + 0x34], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], ebx
cmp dword [edi + 0x24], ebx
jbe 0x562453
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [edi + 0x20], eax
jbe 0x562446
lea esi, [ebx*4]
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
lea ecx, [esi + 2]
mov dword [ebp - 0x18], ecx
lea ecx, [esi + 3]
mov dword [ebp - 0x20], ecx
lea ebx, [ebx]
mov ecx, dword [edi + 4]
lea edx, [eax*4]
lea ebx, [edi + 8]
cmp edx, ecx
jae 0x561fe7
cmp esi, dword [ebx]
jae 0x561fe7
mov eax, ecx
imul eax, esi
add eax, edx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x64], eax
jne 0x561fee
mov dword [ebp - 0x64], 0
lea esi, [edx + 1]
cmp esi, ecx
jae 0x56200f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx]
jae 0x56200f
mov eax, ecx
imul eax, dword [ebp - 0x1c]
add eax, esi
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x38], eax
jne 0x562016
mov dword [ebp - 0x38], 0
lea ebx, [edx + 2]
cmp ebx, ecx
jae 0x56203e
mov esi, dword [ebp - 0x1c]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x56203e
mov eax, ecx
lea esi, [edx + 1]
imul eax, dword [ebp - 0x1c]
add eax, ebx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x34], eax
jne 0x562045
mov dword [ebp - 0x34], 0
lea eax, [edx + 3]
mov dword [ebp - 0x24], eax
cmp eax, ecx
jae 0x56206e
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [edi + 8]
lea ebx, [edx + 2]
jae 0x56206e
mov eax, ecx
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
jne 0x562075
mov dword [ebp - 0x30], 0
cmp edx, ecx
jae 0x56209a
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 8]
lea ebx, [edx + 2]
jae 0x56209a
mov eax, ecx
lea esi, [edx + 1]
imul eax, dword [ebp - 0x14]
add eax, edx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], eax
jne 0x5620a1
mov dword [ebp - 0x3c], 0
cmp esi, ecx
jae 0x5620c3
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 8]
lea ebx, [edx + 2]
jae 0x5620c3
mov eax, dword [ebp - 0x14]
imul eax, ecx
add eax, esi
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x40], eax
jne 0x5620ca
mov dword [ebp - 0x40], 0
cmp ebx, ecx
jae 0x5620ec
mov esi, dword [ebp - 0x14]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x5620ec
mov eax, dword [ebp - 0x14]
imul eax, ecx
add eax, ebx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x44], eax
jne 0x5620f3
mov dword [ebp - 0x44], 0
lea eax, [edx + 3]
cmp eax, ecx
jae 0x562119
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 8]
lea ebx, [edx + 2]
jae 0x562119
mov eax, dword [ebp - 0x14]
imul eax, ecx
add eax, dword [ebp - 0x24]
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
jne 0x562120
mov dword [ebp - 0x48], 0
cmp edx, ecx
jae 0x562142
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x562142
mov eax, dword [ebp - 0x18]
imul eax, ecx
add eax, edx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
jne 0x562149
mov dword [ebp - 0x4c], 0
cmp esi, ecx
jae 0x56216b
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [edi + 8]
lea ebx, [edx + 2]
jae 0x56216b
mov eax, dword [ebp - 0x18]
imul eax, ecx
add eax, esi
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x50], eax
jne 0x562172
mov dword [ebp - 0x50], 0
cmp ebx, ecx
jae 0x562194
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x562194
mov eax, dword [ebp - 0x18]
imul eax, ecx
add eax, ebx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x54], eax
jne 0x56219b
mov dword [ebp - 0x54], 0
lea eax, [edx + 3]
cmp eax, ecx
jae 0x5621c1
mov esi, dword [ebp - 0x18]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x5621c1
mov eax, dword [ebp - 0x18]
imul eax, ecx
add eax, dword [ebp - 0x24]
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x58], eax
jne 0x5621c8
mov dword [ebp - 0x58], 0
cmp edx, ecx
jae 0x5621ea
mov esi, dword [ebp - 0x20]
cmp esi, dword [edi + 8]
lea esi, [edx + 1]
jae 0x5621ea
mov eax, dword [ebp - 0x20]
imul eax, ecx
add eax, edx
imul eax, eax, 0x2c
add eax, dword [edi + 0xc]
mov dword [ebp - 0x5c], eax
jne 0x5621f1
mov dword [ebp - 0x5c], 0
cmp esi, ecx
jae 0x56220d
mov edx, dword [ebp - 0x20]
cmp edx, dword [edi + 8]
jae 0x56220d
imul edx, ecx
add edx, esi
imul edx, edx, 0x2c
add edx, dword [edi + 0xc]
mov dword [ebp - 0x60], edx
jne 0x562212
xor edx, edx
mov dword [ebp - 0x60], edx
cmp ebx, ecx
jae 0x56222d
mov esi, dword [ebp - 0x20]
cmp esi, dword [edi + 8]
jae 0x56222d
mov eax, esi
imul eax, ecx
add eax, ebx
imul ebx, eax, 0x2c
add ebx, dword [edi + 0xc]
jne 0x56222f
xor ebx, ebx
mov esi, dword [ebp - 0x24]
cmp esi, ecx
jae 0x562251
mov edx, dword [ebp - 0x20]
cmp edx, dword [edi + 8]
mov edx, dword [ebp - 0x60]
jae 0x562251
mov eax, dword [ebp - 0x20]
imul eax, ecx
add eax, esi
imul esi, eax, 0x2c
add esi, dword [edi + 0xc]
jne 0x562253
xor esi, esi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x562430
cmp dword [ebp - 0x38], 0
je 0x562430
cmp dword [ebp - 0x34], 0
je 0x562430
cmp dword [ebp - 0x30], 0
je 0x562430
cmp dword [ebp - 0x3c], 0
je 0x562430
cmp dword [ebp - 0x40], 0
je 0x562430
cmp dword [ebp - 0x44], 0
je 0x562430
cmp dword [ebp - 0x48], 0
je 0x562430
cmp dword [ebp - 0x4c], 0
je 0x562430
cmp dword [ebp - 0x50], 0
je 0x562430
cmp dword [ebp - 0x54], 0
je 0x562430
cmp dword [ebp - 0x58], 0
je 0x562430
cmp dword [ebp - 0x5c], 0
je 0x562430
test edx, edx
je 0x562430
test ebx, ebx
je 0x562430
test esi, esi
je 0x562430
mov ecx, eax
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x38]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x34]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x30]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x3c]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x40]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x44]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x48]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x4c]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x50]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x54]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x58]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x5c]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, dword [ebp - 0x60]
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, ebx
call fcn.0055cc60
test eax, eax
jne 0x562418
mov ecx, esi
call fcn.0055cc60
test eax, eax
jne 0x562418
mov eax, dword [edi + 0x20]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
imul eax, ebx
add eax, esi
imul ecx, eax, 0x2c
xor edx, edx
mov eax, dword [edi + 0x34]
push esi
mov word [ecx + eax + 0x1c], dx
mov eax, dword [edi + 0x20]
imul eax, ebx
add eax, esi
imul ecx, eax, 0x2c
add ecx, dword [edi + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x20]
imul eax, ebx
push ebx
add eax, esi
imul ecx, eax, 0x2c
add ecx, dword [edi + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x562433
mov eax, dword [edi + 0x20]
mov edx, 1
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
imul eax, ebx
add eax, esi
imul ecx, eax, 0x2c
jmp 0x5623e6
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [edi + 0x20]
jb 0x561fc0
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [edi + 0x24]
jb 0x561f90
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4