Function at 0x5056e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
mov eax, dword [0x68f500]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], 0
mov byte [esp + 8], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x48]
movups xmmword [esp + 0x24], xmm0
test ecx, ecx
je 0x5066d3
test edi, edi
je 0x5066d3
mov edx, dword [edi + 0x48]
test edx, edx
je 0x5066d3
cmp ecx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x4c]
add eax, 0xfffffffe
add eax, edx
cmp ecx, eax
ja 0x5066d3
mov bl, byte [ecx]
lea edx, [ecx + 1]
movzx eax, bl
mov dword [esi], eax
mov dword [esp + 0x14], edx
cmp bl, 0x21
jae 0x5066d3
cmp bl, 1
jne 0x5057e1
movzx ebx, byte [edx]
mov ebp, dword [edi + 0x18]
cmp ebx, ebp
ja 0x5066d3
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
lea eax, [ebx + ecx]
cmp eax, ebp
ja 0x5066d3
mov dword [esi + 4], ebx
mov dword [esi + 8], 0
mov eax, dword [edi + 0x1c]
pop edi
lea eax, [eax + ecx*4]
add eax, 4
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
cmp bl, 2
je 0x506622
cmp bl, 3
je 0x506622
cmp bl, 0xb
jne 0x505836
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffe
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov al, 1
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call fcn.005049f0
add esp, 0x10
test al, al
je 0x5066d3
mov ebx, dword [esi]
cmp ebx, 4
je 0x5064a7
cmp ebx, 5
sete byte [esp + 0x18]
je 0x5064a7
cmp ebx, 6
je 0x506318
cmp ebx, 7
sete byte [esp + 0x18]
je 0x506318
cmp ebx, 8
je 0x5061e3
cmp ebx, 9
sete byte [esp + 0x18]
je 0x5061e3
cmp ebx, 0xa
jne 0x5058eb
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffe
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov al, 1
pop edi
mov dword [esi + 0xc], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
cmp ebx, 0xc
je 0x506031
cmp ebx, 0xd
je 0x506031
cmp ebx, 0xe
je 0x505f52
cmp ebx, 0xf
je 0x505f52
lea eax, [ebx - 0x10]
cmp eax, 7
ja 0x505b7d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffe
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
add edx, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
shl ecx, 2
mov dword [esi + 0xc], ecx
cmp ebx, 0x10
je 0x505976
cmp ebx, 0x11
je 0x505976
cmp ebx, 0x12
je 0x505976
cmp ebx, 0x13
je 0x505976
mov dword [esi + 0x10], ecx
jmp 0x5059b3
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffe
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
add edx, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
shl ecx, 2
mov dword [esi + 0x10], ecx
cmp ebx, 0x12
je 0x5059c8
cmp ebx, 0x13
je 0x5059c8
cmp ebx, 0x16
je 0x5059c8
cmp ebx, 0x17
je 0x5059c8
mov dword [esi + 0x14], 0
xor ecx, ecx
jmp 0x505a17
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
lea eax, [edx + 4]
shl ecx, 0x10
mov dword [esi + 0x14], ecx
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x1c]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x18], ecx
cmp ebx, 0x11
je 0x505a32
cmp ebx, 0x13
je 0x505a32
cmp ebx, 0x15
je 0x505a32
cmp ebx, 0x17
jne 0x505b62
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ebp, byte [edx]
movzx eax, byte [edx + 1]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 3]
shl ebp, 8
or ebp, eax
cmp ebx, 0x11
mov ebx, dword [esp + 0x20]
jne 0x505aa1
lea eax, [esp + 0x24]
push eax
push 2
push ebp
push edi
push ebx
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
shl eax, 2
add dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
shl eax, 2
add dword [esi + 0x10], eax
cmp dword [esi], 0x13
jne 0x505aee
lea eax, [esp + 0x24]
push eax
push 4
push ebp
push edi
push ebx
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
shl eax, 0x10
add dword [esi + 0x18], eax
cmp dword [esi], 0x15
jne 0x505b1e
lea eax, [esp + 0x24]
push eax
push 1
push ebp
push edi
push ebx
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
cmp dword [esi], 0x17
jne 0x505b62
lea eax, [esp + 0x24]
push eax
push 3
push ebp
push edi
push ebx
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
mov eax, dword [esp + 0x28]
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
shl eax, 0x10
add dword [esi + 0x14], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x18], eax
pop edi
mov dword [esi], 0x10
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
cmp ebx, 0x18
je 0x505ded
cmp ebx, 0x1a
je 0x505ded
cmp ebx, 0x19
je 0x505ded
cmp ebx, 0x1b
je 0x505ded
cmp ebx, 0x1c
je 0x505c48
cmp ebx, 0x1d
je 0x505c48
cmp ebx, 0x1e
je 0x505c48
cmp ebx, 0x1f
je 0x505c48
cmp ebx, 0x20
jne 0x5066d3
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
dec eax
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
inc edx
mov dword [esp + 0x14], edx
cmp eax, 0x1c
jae 0x5066d3
mov dword [esi + 0xc], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push edi
call fcn.005049f0
add esp, 0x10
test al, al
je 0x5066d3
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0x10], eax
mov al, 1
mov byte [esi + 0x14], 0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
add edx, 4
or ecx, eax
shl ecx, 2
mov dword [esi + 0xc], ecx
movzx eax, byte [edx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
shl ecx, 2
mov dword [esi + 0x10], ecx
cmp ebx, 0x1e
je 0x505cb8
cmp ebx, 0x1f
je 0x505cb8
mov dword [esi + 0x14], 0
xor ecx, ecx
mov ebx, edx
jmp 0x505d01
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
add edx, 4
or ecx, eax
mov ebx, edx
shl ecx, 0x10
mov dword [esi + 0x14], ecx
movzx eax, byte [ebx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x18], ecx
mov eax, dword [esi]
cmp eax, 0x1d
je 0x505d14
cmp eax, 0x1f
jne 0x505dd2
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
cmp dword [esi], 0x1d
jne 0x505d85
lea eax, [esp + 0x24]
push eax
push 2
push ebx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [esi + 0x10], eax
cmp dword [esi], 0x1f
jne 0x505dd2
lea eax, [esp + 0x24]
push eax
push 4
push ebx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
shl eax, 0x10
add dword [esi + 0x18], eax
pop edi
mov dword [esi], 0x1c
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffe
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
add edx, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
shl ecx, 2
mov dword [esi + 0xc], ecx
cmp ebx, 0x1a
je 0x505e46
cmp ebx, 0x1b
je 0x505e46
mov dword [esi + 0x10], 0
xor ecx, ecx
mov ebx, edx
jmp 0x505e8f
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
add edx, 4
or ecx, eax
mov ebx, edx
shl ecx, 0x10
mov dword [esi + 0x10], ecx
movzx eax, byte [ebx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x14], ecx
mov eax, dword [esi]
cmp eax, 0x19
je 0x505ea2
cmp eax, 0x1b
jne 0x505f37
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ecx, byte [edx]
mov ebx, 3
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
xor edx, edx
or ecx, eax
mov eax, dword [esi]
cmp eax, 0x1b
cmovne ebx, edx
cmp eax, 0x19
jne 0x505ef3
lea ebx, [edx + 1]
jmp 0x505ef8
cmp eax, 0x1b
jne 0x505f37
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov dword [esi + 0xc], eax
cmp ebx, 3
jne 0x505f37
mov eax, dword [esp + 0x28]
shl eax, 0x10
add dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x14], eax
pop edi
mov dword [esi], 0x18
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
add edx, 4
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0xc], ecx
movzx eax, byte [edx - 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx - 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x10], ecx
cmp ebx, 0xf
jne 0x506016
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 2
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
shl eax, 0x10
add dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
shl eax, 0x10
add dword [esi + 0x10], eax
pop edi
mov dword [esi], 0xe
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov byte [esi + 8], 0
push eax
push dword [esp + 0x24]
push edi
call fcn.005049f0
add esp, 0x10
test al, al
je 0x5066d3
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xffffffe8
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ecx, byte [edx]
lea ebx, [edx + 0x18]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
movzx eax, byte [edx + 4]
movzx ecx, byte [edx + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
movzx eax, byte [edx + 8]
movzx ecx, byte [edx + 9]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx eax, byte [edx + 0xc]
movzx ecx, byte [edx + 0xd]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx eax, byte [edx + 0x10]
movzx ecx, byte [edx + 0x11]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x13]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx eax, byte [edx + 0x14]
movzx ecx, byte [edx + 0x15]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x17]
shl ecx, 8
or ecx, eax
cmp dword [esi], 0xd
mov dword [esi + 0x20], ecx
jne 0x5061c8
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp ebx, eax
ja 0x5066d3
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 6
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
add dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
add dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
add dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
add dword [esi + 0x1c], eax
mov eax, dword [esp + 0x34]
add dword [esi + 0x14], eax
mov eax, dword [esp + 0x38]
add dword [esi + 0x20], eax
pop edi
mov dword [esi], 0xc
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
push dword [esp + 0x18]
lea eax, [esi + 4]
push eax
push dword [esp + 0x18]
push edi
call fcn.00505620
add esp, 0x10
test al, al
je 0x5066d3
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffff8
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
lea ebx, [edx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x18], ecx
movzx eax, byte [edx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x1c], ecx
movzx eax, byte [edx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 2
mov dword [esi + 0x20], ecx
movzx eax, byte [edx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 7]
or ecx, eax
shl ecx, 2
cmp byte [esp + 0x18], 0
mov dword [esi + 0x24], ecx
je 0x5062fd
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp ebx, eax
ja 0x5066d3
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 4
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
shl eax, 0x10
add dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
shl eax, 0x10
add dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
shl eax, 2
add dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
shl eax, 2
add dword [esi + 0x24], eax
pop edi
mov dword [esi], 8
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
push dword [esp + 0x18]
lea eax, [esi + 4]
push eax
push dword [esp + 0x18]
push edi
call fcn.00505620
add esp, 0x10
test al, al
je 0x5066d3
mov ebx, dword [esp + 0x14]
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffff4
add eax, dword [edi + 0x4c]
cmp ebx, eax
ja 0x5066d3
movzx eax, byte [ebx]
lea edx, [ebx + 0xc]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x18], ecx
movzx eax, byte [ebx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x1c], ecx
movzx eax, byte [ebx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 5]
or ecx, eax
mov eax, accept
shl ecx, 0x10
test ecx, ecx
cmovs ecx, eax
mov dword [esi + 0x20], ecx
movzx eax, byte [ebx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 7]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x24], ecx
movzx eax, byte [ebx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 9]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x28], ecx
movzx eax, byte [ebx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [ebx + 0xb]
or ecx, eax
mov eax, accept
shl ecx, 0x10
test ecx, ecx
cmovs ecx, eax
cmp byte [esp + 0x18], 0
mov dword [esi + 0x2c], ecx
je 0x50648c
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 6
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
shl eax, 0x10
add dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
shl eax, 0x10
add dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
shl eax, 0x10
add dword [esi + 0x24], eax
mov eax, dword [esp + 0x34]
shl eax, 0x10
add dword [esi + 0x28], eax
mov eax, dword [esp + 0x38]
shl eax, 0x10
add dword [esi + 0x2c], eax
pop edi
mov dword [esi], 6
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
push dword [esp + 0x18]
lea eax, [esi + 4]
push eax
push dword [esp + 0x18]
push edi
call fcn.00505620
add esp, 0x10
test al, al
je 0x5066d3
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffff4
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
lea ebx, [edx + 0xc]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x18], ecx
movzx eax, byte [edx + 2]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x1c], ecx
movzx eax, byte [edx + 4]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x20], ecx
movzx eax, byte [edx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 7]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x24], ecx
movzx eax, byte [edx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 9]
or ecx, eax
shl ecx, 0x10
mov dword [esi + 0x28], ecx
movzx eax, byte [edx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 0xb]
or ecx, eax
shl ecx, 0x10
cmp byte [esp + 0x18], 0
mov dword [esi + 0x2c], ecx
je 0x506607
cmp ebx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp ebx, eax
ja 0x5066d3
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 6
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov eax, dword [esp + 0x24]
shl eax, 0x10
add dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
shl eax, 0x10
add dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
shl eax, 0x10
add dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
shl eax, 0x10
add dword [esi + 0x24], eax
mov eax, dword [esp + 0x34]
shl eax, 0x10
add dword [esi + 0x28], eax
mov eax, dword [esp + 0x38]
shl eax, 0x10
add dword [esi + 0x2c], eax
pop edi
mov dword [esi], 4
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x4c]
add eax, 0xfffffffc
add eax, dword [edi + 0x48]
cmp edx, eax
ja 0x5066d3
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
add edx, 4
shl cx, 8
or cx, ax
mov word [esi + 4], cx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl cx, 8
or cx, ax
mov word [esi + 6], cx
cmp bl, 3
jne 0x5066b8
cmp edx, dword [edi + 0x24]
jb 0x5066d3
mov eax, dword [edi + 0x48]
add eax, 0xfffffffc
add eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x5066d3
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x24]
push eax
push 1
push ecx
push edi
push ebp
call fcn.00504a60
add esp, 0x14
test al, al
je 0x5066d3
mov ax, word [esp + 0x24]
add word [esi + 6], ax
pop edi
mov dword [esi], 2
mov al, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ab3d6
add esp, 0x30
ret